jMyles
5fdac5d345
Ursula checks Alice's signature on the payload; still some logic to work out.
2017-11-18 13:33:32 -08:00
jMyles
753905f04f
Ursula receives a Policy.payload via REST.
2017-11-18 13:33:31 -08:00
jMyles
c426714622
Policy now gets Bob injected.
2017-11-18 13:33:31 -08:00
jMyles
711d99b109
IntegrityError block for adding a kFrag that already exists.
2017-11-18 13:33:31 -08:00
jMyles
c61ea7f76e
Implementing keystore in view.
2017-11-18 13:33:31 -08:00
jMyles
ec07b241c8
Ursula now makes a KeyStore using in-memory sqlite if none is provided.
2017-11-18 13:33:31 -08:00
jMyles
0fa2750e6f
Ursula now takes a KeyStore.
2017-11-18 13:29:55 -08:00
jMyles
531e3c15c2
Ursula endpoint for receiving a new kfrag.
2017-11-18 13:29:55 -08:00
jMyles
098da6dc21
PublicKey class.
2017-11-18 13:11:27 -08:00
jMyles
ec8c225f7d
Moved BytestringSplitter remainder logic to __call__; implemented throughout.
2017-11-11 18:00:32 -08:00
jMyles
f643e0cd2b
Using HRAC and dht_value_splitter for characters.
2017-11-11 17:46:27 -08:00
jMyles
53a0450bf5
Added dunders to Seal for concat'ing.
2017-11-11 15:49:15 -08:00
jMyles
7e43f3caad
More thorough implementation of Signature throughout.
2017-11-10 23:36:21 -08:00
jMyles
e0f9995e4c
Casting Signature to bytes for msgpack. Better to concat it in the future - see #114 .
2017-11-10 16:29:28 -08:00
jMyles
1ca86f5b71
ttl is now an attr instead of a method.
2017-11-10 15:55:54 -08:00
jMyles
48174e722e
Implemented HRAC; pruned some other legacy code.
2017-11-10 15:34:52 -08:00
jMyles
49f99fc640
Added Bob's public key to secret part of TreasureMap DHT key. Also lots of sanding / code simplification.
2017-11-10 10:47:07 -08:00
jMyles
b66eccb251
Working stop-propagation for both Ursula interfaces and TreasureMaps.
2017-11-10 02:04:01 -08:00
jMyles
19aab328d0
Bob can now follow treasure map and get Ursula instances.
2017-11-07 14:25:03 -08:00
jMyles
f704f93cbe
KeyPairBasedPower to reuse logic for powers based on keypairs.
2017-11-07 12:51:30 -08:00
jMyles
ae7683478b
Moved verify to utils; implemented it in Character.verify_from. Awesome cleanup. Fixes #99 .
2017-11-05 20:30:34 -08:00
jMyles
d49eb130af
Ursula now sets interface info using public key, providing signed interface info. Other Ursulas refuse to propagate unless this info is correct.
2017-11-05 19:30:03 -08:00
jMyles
745e5a43b4
Beginning of verifying Ursula's interface.
2017-11-05 19:30:03 -08:00
jMyles
d2b0e364e1
Ursula now reports IP via K:V store. Hacky workaround for #95 .
2017-11-03 18:37:27 -07:00
jMyles
eb2382e763
Pursuant to #93 , changes to K:V for Alie to lookup Ursula. This commit demonstrates one of the problems described in #95 .
2017-11-03 18:37:27 -07:00
jMyles
41b6642b6d
Msgpacking encrypted message.
2017-11-03 18:37:27 -07:00
jMyles
5b570b046e
Very close to complete Ursula -=> Bob flow for treasure map, but strange error when trying to run coroutine.
2017-11-03 18:37:27 -07:00
jMyles
83058d0211
Fairly reasonable shape for Bob-=>Ursula discovery/upgrade.
2017-11-03 18:37:27 -07:00
jMyles
17adc4c566
More test re-organization. Shows failure of ec.serialize.
2017-11-03 18:37:27 -07:00
jMyles
a07e082e6a
Working toward policy payload for use over network.
2017-11-03 18:37:21 -07:00
tux
0ae9d007c8
Implement generate_rekey_frags method on Alice
...
This doesn't include a test for this function. This is basically a tiny
wrapper around the crypto api for generating the key frags.
I'll leave it to JMyles to implement this how he wants.
Fix syntax error
Skip erroring test
2017-10-23 14:20:15 -07:00
jMyles
24b1f4fa92
Bringing policy logic back in line with protocol with new crypto tooling.
2017-10-18 15:48:20 -07:00
tuxxy
9bc43c88e4
Use SigningPower instead of SigningKeypair in characters
2017-10-17 15:01:25 -06:00
jMyles
5566c6058e
Removed alpha and added test for its removal.
2017-10-16 22:25:16 -07: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
758aeaa2d7
Compatibility with new encrypt/decrypt functions.
2017-10-16 20:13:38 -07:00
jMyles
504d840e28
Moving new crypto utility functions to _alpha while we consider them.
2017-10-16 18:19:27 -07:00
jMyles
9714b2d0cb
Fixing equality function (still needs tests)
2017-10-16 18:19:16 -07:00
jMyles
adf71c80c8
Seal now implements dunders instead of custom methods.
2017-10-16 18:17:53 -07:00
jMyles
e276e86d52
Getting pretty close. Need a clean way to encrypt and decrypt.
2017-10-16 18:17:53 -07:00
jMyles
71669bfc49
Made working defaults for EncryptingKeypair
2017-10-16 18:17:29 -07:00
jMyles
db364a20de
Fixed up docstring and type hints on verify_from
2017-10-16 18:16:01 -07:00
jMyles
506f0f81cd
Character encryption tests.
...
Note that CryptoPower.decrypt and Character.encrypt_for have fake logic until EncryptingPower is implemented.
2017-10-16 18:16:01 -07:00
jMyles
8cf64dfcc6
PolicyGroup now uses Bob instead of a public key. One test fails until we get EncryptingPower working.
2017-10-16 18:12:14 -07:00
jMyles
bf0f83b6ea
Moving EncryptingKeypair over to powers.
2017-10-10 22:39:25 -07:00
tuxxy
c699fd3e18
Use keccak_digest instead of signature_hash or content_hash
...
Really use keccak_hash
keccak_hash -> keccak_digest
Fix another thing
2017-10-10 20:32:35 -06:00
tuxxy
3b3f44038c
Fix tests and update imports to reflect nkms.crypto.api
2017-10-10 20:18:24 -06:00
jMyles
9e651af46b
Import statements changed while we reorganize.
2017-10-10 13:02:45 -07:00
jMyles
7eae9c21b1
KeyRing -=> KeyStore and some other reorganization.
2017-10-09 14:03:16 -07:00
jMyles
b28a937b05
Passing both crypto_power and crypto_powerup is now not allowed.
2017-10-06 20:49:59 -07:00