47 Commits

Author SHA1 Message Date
Greg Fitzgerald
b7ae5b712a Move Pubkey into its own module 2018-09-26 20:40:40 -06:00
Greg Fitzgerald
4a980568ac Rename sig variables to signature
We'll avoid introducing three-letter terms to free up the namespace
for three-letter acronyms.

But recognize the term "sigverify", a verb, to verify a digital
signature.
2018-08-09 13:41:37 -06:00
Greg Fitzgerald
ad331e6d56 Rename PublicKey type to Pubkey
Recognize pubkey as a noun meaning the public key of a keypair.
2018-08-09 13:41:37 -06:00
Greg Fitzgerald
d7e4e57548 Rename public_key variables to pubkey 2018-08-09 13:41:37 -06:00
Greg Fitzgerald
c2bbe4344e Rename KeyPair to Keypair 2018-08-09 13:41:37 -06:00
Tyera Eulberg
4d77fa900b Add Signature wrapper and supporting traits 2018-08-01 17:00:51 -07:00
Greg Fitzgerald
aa9bc57b4d Implement GenKeys without SecureRandom 2018-08-01 16:24:47 -07:00
Greg Fitzgerald
11df477b20 Make GenKey functions mut
We hide the mutability to implement SecureRandom, but that's going
away.
2018-08-01 16:24:47 -07:00
Greg Fitzgerald
7141750668 new_key -> gen_keypair 2018-08-01 16:24:47 -07:00
Greg Fitzgerald
68675bd1ab Less pub 2018-08-01 16:24:47 -07:00
Greg Fitzgerald
19b3cacd60 Generate a fixed-size array instead of a vector 2018-08-01 16:24:47 -07:00
Tyera Eulberg
e9499ac5b8 Update PublicKey AsRef to slice 2018-08-01 16:15:14 -07:00
Tyera Eulberg
7ff721e563 Replace pub field with AsRef impl 2018-08-01 16:15:14 -07:00
Tyera Eulberg
a86618faf3 Add PublicKey wrapper
Add custom formatting for PublicKey display and debug
2018-08-01 16:15:14 -07:00
Greg Fitzgerald
545f4f1c87 Pass the owner's keypair to fullnode-config 2018-07-12 21:50:28 -06:00
Greg Fitzgerald
b5006b8f2b Migrate to solana-keygen
Most of #593
2018-07-12 21:50:28 -06:00
Greg Fitzgerald
3144a70b18 Move all benchmarks to benches/ 2018-07-11 11:18:18 -06:00
Greg Fitzgerald
1c97bf50b6 Fix nightly
No longer ignore failures in the nightly build.
2018-06-19 17:38:04 -07:00
Stephen Akridge
31198bc105 Fix cargo bench nightly 2018-06-18 13:20:39 -07:00
Greg Fitzgerald
5435bb734c Upgrade rand 2018-06-11 15:51:25 -06:00
Greg Fitzgerald
9c9c63572b cargo fmt
rustfmt was updated with 1.26.1
2018-05-29 20:33:45 -07:00
Stephen Akridge
75e69eecfa Fix nightly bench 2018-05-23 17:15:03 -06:00
Greg Fitzgerald
84477835dc
Fix nondeterministic key generation (#243)
Our one and only unsafe operation was ...unsafe.
2018-05-23 14:04:07 -06:00
Greg Fitzgerald
d4959bc157 Test cleanup
GenKey unit tests were in the benchmark suite.
2018-05-23 12:50:23 -06:00
Robert Kelly
791ae852a2 removed old keygen 2018-05-13 18:14:10 -04:00
Greg Fitzgerald
c308a6459f cargo fmt 2018-05-12 17:27:15 -06:00
Robert Kelly
ff5e1c635f increased iterations 2018-05-12 18:18:18 -04:00
Robert Kelly
6149c2fcb5 added benchmarks for two GenKeys 2018-05-12 18:08:08 -04:00
Robert Kelly
4cd1fa8c38 refactored seed generation 2018-05-12 15:42:27 -04:00
Code Cobain
e779496dfb
Update signature.rs 2018-05-11 11:49:22 -07:00
Code Cobain
3d77fa5fbc
Merge branch 'master' into 153-panic-cleanup 2018-05-11 11:40:20 -07:00
Jackson Sandland
250830ade9 cargo fmt run 2018-05-11 11:38:52 -07:00
Code Cobain
458c27c6e9
Merge branch 'master' into 153-panic-cleanup 2018-05-11 11:18:45 -07:00
Robert Kelly
a49e664e63 Merge branch '156__remove_user_keys_in_mintdemo' of github.com:rlkelly/solana into 156__remove_user_keys_in_mintdemo 2018-05-11 14:07:48 -04:00
Robert Kelly
f20380d6b4 changed RwLock to RefCell 2018-05-11 14:07:41 -04:00
Rob Kelly
05a5e551d6
Merge branch 'master' into 156__remove_user_keys_in_mintdemo 2018-05-11 13:00:44 -04:00
Robert Kelly
d278b71cb2 added tests and utility method for key generation 2018-05-11 12:55:05 -04:00
Jackson Sandland
73c7fb87e8 signature.rs - panic cleanup 2018-05-10 17:15:53 -07:00
Stephen Akridge
a80991f2b3 Fixes for serializing entries over blobs and reorg into ledger 2018-05-10 15:30:30 -07:00
Jackson Sandland
fe51669e85 signature.rs - panic cleanup 2018-05-08 23:21:45 -07:00
Robert Kelly
40c50aef50 deterministic random wallet generationg 2018-05-09 00:07:19 -04:00
Greg Fitzgerald
3b9ef5ccab Fix the nightly build 2018-04-11 20:24:14 -06:00
Jackson Sandland
ef169a6652 94: source doc review 2018-03-30 10:43:38 -07:00
Greg Fitzgerald
55179101cd Add more documentation 2018-03-29 12:20:54 -06:00
Greg Fitzgerald
491ba9da84 Add accessors to keypairs and signatures 2018-03-07 15:32:22 -07:00
Greg Fitzgerald
9834c251d0 Boot genesis block helper
Before this change, if you wanted to use a new Transaction
feature in the genesis block, you'd need to extend its
Creator object and associated methods.  With yesterday's
addtions to Transcation, it's now so easy to work with
Transactions directly that we can get rid of the middleman.

Also added a KeyPair type alias, so that ring could be easily swapped
out with a competing library, if needed.
2018-03-07 11:10:15 -07:00
Greg Fitzgerald
624c151ca2 Add signature module
Because things other than transactions can be signed.
2018-03-06 12:48:28 -07:00