Commit Graph

34 Commits

Author SHA1 Message Date
Jae Kwon 0d4436dea7 Use MarshalBinaryBare; Fix encode_test; Bump version 2018-03-26 10:41:04 +02:00
Jae Kwon 788cc0a792 Use new go-wire; PubKey etc are interfaces; Keybase refactor 2018-01-14 01:09:30 -08:00
Ethan Buchman 67a47e6a0b Address is a type alias 2018-01-06 16:05:50 -05:00
Jae Kwon f48baf86fb Add Address type which is HexBytes 2017-12-27 14:37:37 -08:00
Emmanuel Odeke b0cf4b4757
PubKeyFromBytes: return zero value PubKey on error
Fixes https://github.com/tendermint/go-crypto/issues/48.

This previously skewed up my fuzzing tests so ensure
that on error we return the zero value PubKey.
2017-10-28 14:11:22 -07:00
Ethan Frey db5cb8d92c Change codegen name holder->wrapper 2017-05-16 17:02:48 +02:00
Ethan Frey ee200d998f Fix unwrap for proper json format 2017-05-16 17:01:15 +02:00
Ethan Frey f16f711992 First code from codegen... wrong names 2017-05-16 17:01:03 +02:00
Ethan Frey 9016390a6e Moved crypto code to top level again 2017-04-19 16:55:15 +02:00
Ethan Frey 17ed6d178d move go-crypto files pre-keys merge 2017-04-19 16:51:29 +02:00
Ethan Buchman 8bb25ec5ed update paths 2017-04-18 18:17:02 -04:00
Ethan Frey 9e57d521ef Add type assertions for sig/pub/privkey implemenetations 2017-04-10 19:51:02 +02:00
Jae Kwon a3324cc97b Cleanup; Implement .Wrap() 2017-04-10 19:51:02 +02:00
Ethan Frey eb6fcef8d2 Better docs and naming thanks to bucky 2017-04-10 19:51:01 +02:00
Ethan Frey 5b94758d4c Make PubKey struct compatible with go-wire.JSONBytes/ReadJSON 2017-04-10 19:51:01 +02:00
Ethan Frey 66ecd7705f Use new naming scheme PubKey{PubKeyInner} 2017-04-10 19:51:01 +02:00
Ethan Frey 750b25c47a Update go-data, test embedding strategies 2017-04-10 19:41:30 +02:00
Ethan Frey 49569ac244 Wrap constructor to create xxxS structs and avoid recursion 2017-04-10 19:41:30 +02:00
Ethan Buchman 3a1313ab7d secp256k1: use compressed pubkey, bitcoin-style address 2017-03-22 01:18:56 -04:00
Ethan Frey 0e92dd5bb5 One name, type byte per algorithm 2017-02-24 00:31:43 +01:00
Ethan Frey 8c9b889ccf Support json encode/decode for nil values in S structs 2017-02-23 18:11:20 +01:00
Ethan Frey b6a2c5949f Add helper methods for nil checks in structs 2017-02-23 15:35:04 +01:00
Ethan Frey 1bc1947e3f First tests of go-data encoding 2017-02-22 23:43:26 +01:00
Ethan Frey e6d35ee641 Add structs for go-data support 2017-02-22 23:15:10 +01:00
Jae Kwon 7e767e9548 Secp256k1 pubkeys are 64 bytes. Strip btcec prefix byte 2016-04-20 08:46:07 -07:00
Jae Kwon d57d5ff3c9 PrivKey.Equals 2016-04-19 01:26:40 -07:00
Jae Kwon 8b34fd2e51 Add secp256k1 support 2016-04-19 01:02:31 -07:00
Jae Kwon 8152c18c35 Revert Address() scheme change 2016-03-15 15:58:43 -07:00
Jae Kwon 9a95e7b7a5 Added Bytes() and *FromBytes() 2016-03-15 11:11:54 -07:00
Jae Kwon 264d2a3eef Add seed-able cryptographic random. 2016-03-13 09:40:15 -07:00
Jae Kwon 372191dd5f KeyString() in PubKey; Fix tests 2016-02-08 00:50:52 -08:00
Jae Kwon 32b3a27a9a Conform to new go-wire 1.0 2015-11-10 11:53:35 -08:00
Jae Kwon 31a456c8d4 update package name 2015-10-25 13:45:13 -07:00
Jae Kwon fcdea621bf first commit 2015-10-25 13:42:49 -07:00