Skip to content
This repository was archived by the owner on Jul 15, 2018. It is now read-only.

Move from tmlibs #213#115

Merged
liamsi merged 2 commits intodevelopfrom
joon/from-tmlibs-213
Jun 11, 2018
Merged

Move from tmlibs #213#115
liamsi merged 2 commits intodevelopfrom
joon/from-tmlibs-213

Conversation

@mossid
Copy link

@mossid mossid commented Jun 3, 2018

// in the underlying key-value pairs.
// The keys are sorted before the proofs are computed.
func SimpleProofsFromMap(m map[string]Hasher) (rootHash []byte, proofs []*SimpleProof) {
func SimpleProofsFromMap(m map[string]Hasher) (rootHash []byte, proofs map[string]*SimpleProof, keys []string) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for returning the keys here too? Aren't they included in the newly returned map?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah OK. You need them sorted in the order as they were included and they are sorted using .Sort() again in

Copy link
Contributor

@liamsi liamsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all LGTM! It would be cool to link to the issues that explain why these change is necessary. Then, let's merge it

Copy link
Contributor

@liamsi liamsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liamsi liamsi merged commit 66794a1 into develop Jun 11, 2018
@xla xla deleted the joon/from-tmlibs-213 branch June 12, 2018 00:08
liamsi added a commit to liamsi/go-crypto that referenced this pull request Jun 12, 2018
� This is the 1st commit message:

Release/0.8.0 (tendermint#127)

https://github.com/Liamsi/go-crypto/blob/8e31aebe2bc23037b9cc11892f3ec4515bbf5991/CHANGELOG.md#080

fix tests, move encoding to encode_test.go, include an example

Ledger integration, WIP

Fix testcases, all looks OK

Prevent unnecessary signatures, improve error messages

Bugfix

Update to new Ledger API in progress

Update to latest upstream, debugging information

� This is the commit message tendermint#2:

Clarify function names

� This is the commit message tendermint#3:

Add ed25519, tests will fail until ed25519 verification fix

Implement PubKeyLedgerEd25519

Pin to an upstream revision

Remove Ledger ed25519 support, for now

Move TODOs to tendermint#114

Move from tmlibs #213 (tendermint#115)

* move from tmlibs 213
* expose KVPair, simpleproofsfrommap returns keys

update ed25519 address scheme (tendermint#112)

make PubKeyEd25519.Address() returns the first 20 bytes of the hash of the raw 32-byte pubkey, no amino required

forgot PrivKeyLedgerSecp256k1

version bump (tendermint#128)

version bump
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants