-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/go data #40
Feature/go data #40
Conversation
Should we use the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great.
types/tx_test.go
Outdated
@@ -62,3 +66,71 @@ func TestAppTxSignable(t *testing.T) { | |||
t.Errorf("Got unexpected sign string for AppTx. Expected:\n%v\nGot:\n%v", expected, signBytesHex) | |||
} | |||
} | |||
|
|||
// d'oh, can't use the version in testutils due to circular imports :( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's move testutils into basecoin/types - no need for the extra tiny package
I just tried to merge into develop locally. I was having trouble actually running a real basecoin with old genesis files - and when I tried to update to use the new json format for the pubkeys, I started getting issues with the int64 in the Coin being treated as some float and not co-operating. Would you mind rebasing on develop and fixing this stuff up? Note you should make sure the ibc demo works as part of testing. We should add it to the circle piece, but just
Sometimes you need to run Run |
969d5c5
to
cddfdd8
Compare
48afaeb
to
a6f6202
Compare
Add ledger/multisig detection in SignTx functions
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Robert Zaremba <[email protected]> Co-authored-by: Marko <[email protected]> Co-authored-by: Julien Robert <[email protected]> Co-authored-by: atheeshp <[email protected]> Co-authored-by: yihuang <[email protected]> Co-authored-by: Daniel Wedul <[email protected]> Co-authored-by: Aleksandr Bezobchuk <[email protected]> Co-authored-by: Javier Su <[email protected]> Co-authored-by: khanh-notional <[email protected]> Co-authored-by: mmsqe <[email protected]> Co-authored-by: Jeancarlo Barrios <[email protected]> Co-authored-by: Facundo Medica <[email protected]>
Use new go-data enhanced go-crypto data structures, so we can play better with json.
go-wire
encodings will remain the same as they are now.encoding/json
creates nice human readable json formats, fit for a public api. Along with bringing the rpc client into tendermint, this will remove a large chunk of the boilerplate inlight-client
.All json encodings can be parsed again to recover the original structure. Here is an example:
Unsigned sendtx transaction (from client)
Signed sendtx transaction. Note that this can be deterministically parsed into the original stucture and the signature valiadated, without requiring a binary interchange format - just a consistent in-memory representation (same data structures):