Commit Graph

1873 Commits (2ab472ae418ffe095e48f5708f9469b47aa3a1f9)

Author SHA1 Message Date
jMyles ad0eb40a4d PublicKey used for metadata instead of int literals throughout tests. Also some PEP8 cleanups and removal of type checks per #105. 2017-11-18 13:19:07 -08:00
jMyles 5a36280788 Ridculous try block no longer needed. 2017-11-18 13:16:41 -08:00
jMyles bcb8849533 Use PublicKey for splitter. 2017-11-18 13:16:26 -08:00
jMyles 291775e6b7 Signature.verify() uses PublicKey.without_metabytes() 2017-11-18 13:14:29 -08:00
jMyles fc08f6f4dd No more need for PUBKEY_SIG_LENGTH - this is on PublicKey now. 2017-11-18 13:13:59 -08:00
jMyles c4421d9e9d Added metabytes to public key generation; fixed some PEP8 issues in API. 2017-11-18 13:13:14 -08:00
jMyles 098da6dc21 PublicKey class. 2017-11-18 13:11:27 -08:00
jMyles e8cfed52e6 Raises ValueError if keypair_byte doesn't match. Fixes #123. 2017-11-18 11:18:12 -08:00
szotov ff07719599 [KMS-ETH]- Merge branch 'multi-personal' into lib
Conflicts:
	contracts/EscrowV2.sol
	tests/test_escrow_v2.py
2017-11-17 12:06:39 +03:00
Michael Egorov 666a00b871 [KMS-ETH]- Boilerplate: which functions to implement 2017-11-16 23:55:14 -08:00
Michael Egorov 74dd1d67c3 [KMS-ETH]- Common functions to connect to local ethereum node or testrpc-py 2017-11-16 23:44:11 -08:00
Michael Egorov 7b998f9bbc [KMS-ETH]- All the tests pass 2017-11-15 18:21:45 -08:00
Michael Egorov f84193c9fb [KMS-ETH]- Changing references 2017-11-15 17:51:16 -08:00
Tux 7d97a6c503
Merge pull request #117 from tuxxy/frag-keystore
Add KeyFrag to KeyStore
2017-11-15 10:18:19 -07:00
szotov 54abf35c96 [KMS-ETH]- Added tests for miner, enhanced locking and deposit methods 2017-11-15 14:21:29 +03:00
Michael Egorov 3722f477c0 [KMS-ETH]- Empty modules 2017-11-14 19:29:12 -08:00
Michael Egorov 204e13bcba [KMS-ETH]- Cleanup 2017-11-14 18:55:43 -08:00
Michael Egorov 75f277a842 [KMS-ETH]- Wrapping Solidity contracts into python package_data 2017-11-14 15:27:20 -08:00
tuxxy 8906d89450
Use BytestringSplitter for kFrag in KeyStore 2017-11-14 16:26:06 -07:00
tuxxy c18a2a6cbd
Add RekeyFrag id length and key length to constants 2017-11-14 15:45:43 -07:00
Michael Egorov c089fb9701 [KMS-ETH]- Experiment with selecting N random ursulas 2017-11-13 15:17:42 -08:00
Michael Egorov 839f59bb3a [KMS-ETH]- py.test cumsum 2017-11-12 19:04:45 -08:00
Michael Egorov 0343c091bf [KMS-ETH]- Adding missed step() 2017-11-12 14:39:49 -08:00
Michael Egorov cdcb43cef3 [KMS-ETH]- Checking findCumSum 2017-11-12 13:36:50 -08:00
Michael Egorov 0b650b4721 [KMS-ETH]- Step in cumsum 2017-11-12 11:46:06 -08:00
tuxxy 9fb0aad603
Add test for test_keyfrag_sqlite 2017-11-11 18:35:39 -08:00
tuxxy 891cf32a2a
Merge branch 'master' of github.com:nucypher/nucypher-kms into frag-keystore 2017-11-11 18:22:07 -08:00
tuxxy 7b46a20aac
Add sig param to get_kfrag 2017-11-11 18:21:05 -08:00
Justin Holmes 1aa50deeec
Merge pull request #116 from jMyles/bytesplitting
Bytesplitting
2017-11-11 18:16:46 -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 72ffa361a4 BytestringSplitter is now allowed to give back the remainder. 2017-11-11 17:46:00 -08:00
jMyles d23f10bfe7 Using HRAC and dht_value_splitter in tests. 2017-11-11 17:45:33 -08:00
jMyles f19a581602 Raise error if Signature is wrong length. 2017-11-11 17:43:55 -08:00
jMyles 49015c4682 dht_value_splitter for reuse. 2017-11-11 17:43:33 -08:00
jMyles ee3170de32 Imlement HRAC in protocols. 2017-11-11 17:43:06 -08:00
jMyles 3dda083b71 New constants for use with BytestringSplitter. 2017-11-11 17:39:47 -08:00
Michael Egorov 8958c7747d [KMS-ETH]- Ursula actions flow 2017-11-11 17:32:46 -08:00
jMyles 53a0450bf5 Added dunders to Seal for concat'ing. 2017-11-11 15:49:15 -08:00
jMyles 3901f13750 Test showing that trying to split too many bytes raises ValueError. 2017-11-11 13:55:51 -08:00
jMyles 1f28a671fa BytestringSplitter now works with arbitrary types. 2017-11-11 13:50:51 -08:00
jMyles 1ed6e6d30b Test showing BytestringSplitter taking arbitrary bytes. 2017-11-11 13:21:24 -08:00
szotov f48418fcf0 [KMS-ETH]- Merge branch 'multi-personal' of https://github.com/nucypher/nucypher-kms-ethereum into multi-personal 2017-11-11 20:37:30 +03:00
szotov c76013ce32 [KMS-ETH]- Added initiation of mining by user, added exponential mining function 2017-11-11 20:36:04 +03:00
jMyles 4f803ba2df BytestringSplitter for #114. 2017-11-11 01:10:29 -08:00
jMyles 7e43f3caad More thorough implementation of Signature throughout. 2017-11-10 23:36:21 -08:00
Justin Holmes 37e8f50431
Merge pull request #115 from jMyles/signature
Signature tests pass.
2017-11-10 16:41:05 -08:00
tuxxy b1c27c18b8
Implement keystore kFrag methods add/del/get 2017-11-10 16:34:50 -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
tuxxy 215b28e113 Return Signature object from SigningPower.sign 2017-11-10 16:18:18 -08:00