Go to file
Ismail Khoffi 4634063698
keys package: fundraiser compatibility and HD keys (BIP 39 & BIP 32 / BIP 44) (#118)
- fundraiser compatibility for HD keys (BIP 39 & BIP 32 / BIP 44)
2018-06-20 13:30:22 -07:00
.circleci fix circleci 2.0 config (#139) 2018-06-15 15:17:40 -07:00
.github add CODEOWNERS file 2018-03-12 12:37:19 +04:00
hkdfchacha20poly1305 Switch xchachapoly to hkdfchachapoly (#135) 2018-06-19 22:18:36 -07:00
keys keys package: fundraiser compatibility and HD keys (BIP 39 & BIP 32 / BIP 44) (#118) 2018-06-20 13:30:22 -07:00
merkle Move from tmlibs #213 (#115) 2018-06-10 20:43:40 -07:00
tmhash merkle: remove unused funcs. unexport simplemap. improv docs 2018-05-30 17:44:02 -04:00
.gitignore Got basic key test working 2017-06-19 17:07:12 +02:00
CHANGELOG.md Remove error from priv.PubKey() (#131) 2018-06-12 13:35:22 -07:00
Gopkg.lock keys package: fundraiser compatibility and HD keys (BIP 39 & BIP 32 / BIP 44) (#118) 2018-06-20 13:30:22 -07:00
Gopkg.toml keys package: fundraiser compatibility and HD keys (BIP 39 & BIP 32 / BIP 44) (#118) 2018-06-20 13:30:22 -07:00
LICENSE Moved crypto code to top level again 2017-04-19 16:55:15 +02:00
Makefile keys package: fundraiser compatibility and HD keys (BIP 39 & BIP 32 / BIP 44) (#118) 2018-06-20 13:30:22 -07:00
README.md Fix dead link in README.md (#106) 2018-05-24 16:57:37 +02:00
amino.go keys package: fundraiser compatibility and HD keys (BIP 39 & BIP 32 / BIP 44) (#118) 2018-06-20 13:30:22 -07:00
armor.go keys package: fundraiser compatibility and HD keys (BIP 39 & BIP 32 / BIP 44) (#118) 2018-06-20 13:30:22 -07:00
armor_test.go Moved crypto code to top level again 2017-04-19 16:55:15 +02:00
doc.go doc.go file started 2017-09-15 17:35:33 -06:00
encode_test.go Remove error from priv.PubKey() (#131) 2018-06-12 13:35:22 -07:00
example_test.go example: fix func suffix 2017-10-10 17:33:51 -04:00
hash.go linting: fixup some stuffs 2017-10-04 18:16:48 -04:00
ledger_common.go Add ed25519, tests will fail until ed25519 verification fix 2018-05-30 03:42:57 +02:00
ledger_secp256k1.go Remove error from priv.PubKey() (#131) 2018-06-12 13:35:22 -07:00
ledger_test.go Remove error from priv.PubKey() (#131) 2018-06-12 13:35:22 -07:00
priv_key.go Remove error from priv.PubKey() (#131) 2018-06-12 13:35:22 -07:00
priv_key_test.go Remove error from priv.PubKey() (#131) 2018-06-12 13:35:22 -07:00
pub_key.go update ed25519 address scheme (#112) 2018-06-11 15:43:32 -07:00
pub_key_test.go Remove error from priv.PubKey() (#131) 2018-06-12 13:35:22 -07:00
random.go safer PRNG seeding: hash concatenation of fresh seedBytes with current seedBytes 2018-05-09 15:04:51 +01:00
signature.go Merge pull request #85 from tendermint/cwgoes/ledger-integration 2018-05-31 21:45:00 +02:00
signature_test.go Remove error from priv.PubKey() (#131) 2018-06-12 13:35:22 -07:00
symmetric.go Moved crypto code to top level again 2017-04-19 16:55:15 +02:00
symmetric_test.go Moved crypto code to top level again 2017-04-19 16:55:15 +02:00
version.go version bump (#128) 2018-06-11 17:27:32 -07:00

README.md

go-crypto GoDoc

go-crypto is the cryptographic package adapted for Tendermint's uses

Importing it

import "github.com/tendermint/go-crypto"

Binary encoding

For Binary encoding, please refer to the Tendermint encoding spec.

JSON Encoding

go-crypto .Bytes() uses Amino:binary encoding, but Amino:JSON is also supported.

Example Amino:JSON encodings:

crypto.PrivKeyEd25519     - {"type":"954568A3288910","value":"EVkqJO/jIXp3rkASXfh9YnyToYXRXhBr6g9cQVxPFnQBP/5povV4HTjvsy530kybxKHwEi85iU8YL0qQhSYVoQ=="}
crypto.SignatureEd25519   - {"type":"6BF5903DA1DB28","value":"77sQNZOrf7ltExpf7AV1WaYPCHbyRLgjBsoWVzcduuLk+jIGmYk+s5R6Emm29p12HeiNAuhUJgdFGmwkpeGJCA=="}
crypto.PubKeyEd25519      - {"type":"AC26791624DE60","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="}
crypto.PrivKeySecp256k1   - {"type":"019E82E1B0F798","value":"zx4Pnh67N+g2V+5vZbQzEyRerX9c4ccNZOVzM9RvJ0Y="}
crypto.SignatureSecp256k1 - {"type":"6D1EA416E1FEE8","value":"MEUCIQCIg5TqS1l7I+MKTrSPIuUN2+4m5tA29dcauqn3NhEJ2wIgICaZ+lgRc5aOTVahU/XoLopXKn8BZcl0bnuYWLvohR8="}
crypto.PubKeySecp256k1    - {"type":"F8CCEAEB5AE980","value":"A8lPKJXcNl5VHt1FK8a244K9EJuS4WX1hFBnwisi0IJx"}