Commit Graph

78 Commits (2670982d0076edd85a5a684a83300c5c54fd30f9)

Author SHA1 Message Date
jMyles 67376fe607 Using Alice's DelegatingPower to make a Policy. 2018-04-12 19:19:28 -07:00
jMyles 9db6a23e4f Simplest Enrique skeleton. 2018-04-12 19:19:28 -07:00
jMyles 53a0a33f6a SigningPower / keypair pipeline for generating certs. 2018-03-06 17:51:59 -08:00
jMyles edad1d7148 dict interface for from_public_keys. 2018-02-28 17:33:53 -08:00
jMyles 5ce725f368 PowerUps no longer need to provide functions themselves; they can indicate that they provide functions from their keypair. 2018-02-24 01:44:36 -08:00
jMyles 6f870950d1 Don't need sign here anymore. 2018-02-24 01:27:08 -08:00
jMyles fe993e13b5 Matching error classes to PowerUps. 2018-02-24 01:14:13 -08:00
jMyles 7d7b0023a2 Public way to lookup power_ups for CryptoPower. 2018-02-24 01:13:58 -08:00
jMyles 49005ae250 generate_kfrags all the way down. 2018-02-24 00:50:09 -08:00
jMyles 872cef81a2 Smoothing out Powers; redlines through plenty of obselete functionality surrounding path keys in EncryptingPower. 2018-02-23 23:36:40 -08:00
jMyles 760e0a8129 Reflectin refractor of umbral.umbral to umbral.pre. 2018-02-23 22:02:32 -08:00
jMyles 3c63ece916 Don't need this method anymore now that we have MessageKit. 2018-02-19 15:18:47 -08:00
jMyles 424a75b4ef Get outta here with that. 2018-02-14 00:18:11 -08:00
jMyles 57971c447e Some tighter names. 2018-02-14 00:17:37 -08:00
jMyles 7b84024bd8 pubkey_sig_tuple is gone. 2018-02-14 00:17:12 -08:00
jMyles bc01f5d07a Fixing sig up to work with cryptography ECDSA. 2018-02-13 11:08:28 -08:00
jMyles 83344553d9 Clarifying that we need (and use) the enc - not sig - public key for encrypting. 2018-02-12 13:00:14 -08:00
jMyles fba93f9b07 ...and that's the story of how pyumbral and MessageKits destroyed two perfectly awful functions. 2018-02-11 00:59:14 -08:00
jMyles d2a5218cc2 More touchups to powers. 2018-02-11 00:58:06 -08:00
jMyles b63e749819 Characters can encrypt for others without needing an encrypting power. 2018-02-11 00:56:33 -08:00
jMyles 69137b07d5 Some organization. 2018-02-11 00:55:22 -08:00
jMyles 24bbac9ae1 Unlike PublicKey, UmbralPublicKey can't be init'd with bytes. 2018-02-10 19:09:29 -08:00
jMyles 29aeb86bc5 We don't hash messages in advance anymore; cryptography.io does it. 2018-02-10 19:09:29 -08:00
jMyles c7e13cb861 KeyPair gets init'd with bytes. 2018-02-10 19:09:29 -08:00
jMyles 8a6ac628bb Use the sig_keypair's sign method. 2018-02-10 19:09:29 -08:00
jMyles ad3af0fe8f Gotta actually grab the public key. 2018-02-10 19:09:29 -08:00
jMyles 8ecb791823 Moved mutable out of params list. 2018-02-10 19:09:29 -08:00
jMyles 3a1fcc349d Adding public key (assuming secp256k1) to constants 2018-02-09 20:36:15 -08:00
jMyles 5741702891 Fixed NameError for Signature.__bytes__. 2018-02-09 13:03:52 -08:00
jMyles 48bfbacd5d KeypairBasedPower.__init__ - @tuxxy is perhaps going to move this down to KeyPair. 2018-02-09 13:03:10 -08:00
tuxxy ba2200487f Add what I got - KeypairBasedPower 2018-02-09 12:27:12 -07:00
jMyles 543465b99d Implementing from_public_keys in various places. 2018-02-05 11:26:50 -08:00
jMyles f7539f7575 Python 3.5 doesn't like inline type-hints for variables. This can be a class anyway. 2017-11-22 09:23:40 -08:00
jMyles 5f4b5f5cca Type for Keypair class. 2017-11-21 22:10:47 -08:00
jMyles 6886b6bb0a Adding type hints for methods that return None. 2017-11-21 22:08:02 -08:00
jMyles 7e43f3caad More thorough implementation of Signature throughout. 2017-11-10 23:36:21 -08:00
tuxxy 215b28e113 Return Signature object from SigningPower.sign 2017-11-10 16:18:18 -08:00
jMyles f704f93cbe KeyPairBasedPower to reuse logic for powers based on keypairs. 2017-11-07 12:51:30 -08:00
jMyles 334c7807ad Let's see how the graph changes if we only cover nkms. 2017-10-17 18:44:37 -07:00
tuxxy 09b442d5a3
Use SigningPower instead of SigningKeypair in test_crypto_characters_and_their_powers
Use SigningPower instead of SigningKeypair correctly

Use correct SigningPower
2017-10-17 16:01:59 -06:00
tuxxy 32baef1575
Add test TestSigningPower and fix SigningPower init params 2017-10-17 14:47:51 -06:00
tuxxy b28d66374c
Add sign method in SigningKeypair call it in SigningPower 2017-10-17 14:25:56 -06:00
tuxxy 506fd8c2d0
Add _gen_pubkey method to keystore.keypairs objects and make SigningKeypair inherit from Keypair 2017-10-17 14:12:47 -06:00
tuxxy 254f1d44c0
Use keypairs import for SigningKeypair and fix some PEP8 things 2017-10-17 13:55:00 -06:00
tuxxy 1b0ea98980
Rename SigningKeypair to SigningPower 2017-10-17 13:20:55 -06:00
jMyles 4a2d6a05b3 Code cleanup and some stale code removal. Made EncryptingPower compliant with confers_public_key logic. 2017-10-16 21:45:43 -07:00
jMyles 9d0fe9e181 Compat. with public keys defaulting to bytes instead of tuple. 2017-10-16 20:21:45 -07:00
jMyles 64b907f461 Shim to use SigningKeypair.gen_priv while @tuxxy works out SigningPower. 2017-10-16 20:14:58 -07:00
jMyles 758aeaa2d7 Compatibility with new encrypt/decrypt functions. 2017-10-16 20:13:38 -07:00
jMyles 71669bfc49 Made working defaults for EncryptingKeypair 2017-10-16 18:17:29 -07:00