Go to file
Ethan Buchman 134fdf7169 bring in merkle from tmlibs 2018-05-22 12:43:44 -04:00
.github add CODEOWNERS file 2018-03-12 12:37:19 +04:00
keys get rid of go-bindata dependency in Makefile; hardcode its output instead 2018-05-15 12:07:05 +01:00
merkle bring in merkle from tmlibs 2018-05-22 12:43:44 -04:00
.gitignore Got basic key test working 2017-06-19 17:07:12 +02:00
CHANGELOG.md update for latest amino. bump version 2018-04-09 16:21:58 +03:00
Gopkg.lock update for latest amino. bump version 2018-04-09 16:21:58 +03:00
Gopkg.toml update for latest amino. bump version 2018-04-09 16:21:58 +03:00
LICENSE Moved crypto code to top level again 2017-04-19 16:55:15 +02:00
Makefile fix makefile 2018-05-15 12:23:33 +01:00
README.md Update README.md 2018-05-09 13:48:21 -07:00
amino.go Make concrete registered name be tendermint/* 2018-03-18 23:45:46 +01:00
armor.go linter: add metalinter to Makefile & apply some fixes 2017-10-04 17:53:56 -04:00
armor_test.go Moved crypto code to top level again 2017-04-19 16:55:15 +02:00
circle.yml update circle.yml 2017-12-30 18:25:42 -05:00
doc.go doc.go file started 2017-09-15 17:35:33 -06:00
encode_test.go Update README with examples; Add signature test 2018-03-26 10:59:10 +02: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
priv_key.go fix ed25519 Generate 2018-05-05 19:17:21 -04:00
priv_key_test.go fix ed25519 Generate 2018-05-05 19:17:21 -04:00
pub_key.go Use MarshalBinaryBare; Fix encode_test; Bump version 2018-03-26 10:41:04 +02:00
pub_key_test.go Use new go-wire; PubKey etc are interfaces; Keybase refactor 2018-01-14 01:09:30 -08:00
random.go CRandHex: fix up doc to mention length of digits 2017-12-22 23:16:34 -07:00
signature.go Use MarshalBinaryBare; Fix encode_test; Bump version 2018-03-26 10:41:04 +02:00
signature_test.go Make concrete registered name be tendermint/* 2018-03-18 23:45:46 +01: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 update for latest amino. bump version 2018-04-09 16:21:58 +03: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"}