k_frag, not key_frag!

pull/161/head
jMyles 2018-02-12 13:33:12 -08:00
parent 6a326239f6
commit f5c19cdfba
1 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ class PolicyContract(Base):
expiration = Column(DateTime)
deposit = Column(LargeBinary)
hrac = Column(LargeBinary, unique=True)
key_frag = Column(LargeBinary, unique=True)
k_frag = Column(LargeBinary, unique=True)
alice_pubkey_sig_id = Column(Integer, ForeignKey('keys.id'))
# alice_pubkey_enc_id = Column(Integer, ForeignKey('keys.id'))
# bob_pubkey_sig_id = Column(Integer, ForeignKey('keys.id'))
@ -39,13 +39,13 @@ class PolicyContract(Base):
created_at = Column(DateTime, default=datetime.utcnow)
def __init__(self, expiration, deposit, hrac,
key_frag, alice_pubkey_sig_id,
k_frag, alice_pubkey_sig_id,
# alice_pubkey_enc_id, bob_pubkey_sig_id,
alice_signature):
self.expiration = expiration
self.deposit = deposit
self.hrac = hrac
self.key_frag = key_frag
self.k_frag = k_frag
self.alice_pubkey_sig_id = alice_pubkey_sig_id
# self.alice_pubkey_enc_id = alice_pubkey_enc_id
# self.bob_pubkey_sig_id = bob_pubkey_sig_id