Skip to content
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

Ledger integration #931

Merged
merged 416 commits into from
Jun 29, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
416 commits
Select commit Hold shift + click to select a range
ae078ee
Generate/recover can return error, not panic on ledger
ethanfrey Oct 23, 2017
1b8d52b
Rename NameLedger to NameLedgerEd25519
ethanfrey Oct 23, 2017
bce88a2
Enable privkey validity checking on load
ethanfrey Oct 23, 2017
2490952
nano validates key on load
ethanfrey Oct 23, 2017
9afceb7
ledger pubkey serializes properly, better load checks
ethanfrey Oct 23, 2017
61d1bdb
Test error handling, load without ledger
ethanfrey Oct 23, 2017
9601e48
Improve error message
ethanfrey Oct 23, 2017
4a2c63f
Update ledger names to specify ed25519
ethanfrey Oct 24, 2017
2d04544
Addressed Buckys PR review comments
ethanfrey Oct 24, 2017
6f6bbf7
Fix metalinter complaints
ethanfrey Oct 24, 2017
69a7b38
Removed keys/server as it is now in cosmos-sdk
ethanfrey Oct 24, 2017
0219ba2
Fix bug introduced by metalinting...
ethanfrey Oct 24, 2017
0a5b1d9
Merge pull request #37 from tendermint/nano
ethanfrey Oct 24, 2017
dfc4cdd
Parameterize and lower bcrypt cost
ethanfrey Oct 24, 2017
3df2ca1
make PrivateKey + Signature comparisons use constant time comparisons
odeke-em Oct 26, 2017
c496dea
Merge pull request #42 from tendermint/feature/bcrypt-usability
ethanfrey Oct 26, 2017
5d88905
Update glide deps, nano/hid for osx/golang1.9
ethanfrey Oct 26, 2017
db5603e
Merge pull request #45 from tendermint/bugfix/nano-hid
ethanfrey Oct 26, 2017
5734613
keys: transactions.go -> types.go
ebuchman Oct 26, 2017
944d36a
changelog
ebuchman Oct 27, 2017
ad31f6a
osx + hid = <3
ethanfrey Oct 27, 2017
8630b72
version and changelog
ebuchman Oct 27, 2017
d1f00be
Merge pull request #46 from tendermint/develop
ebuchman Oct 27, 2017
87badb0
Revert "Parameterize and lower bcrypt cost"
ebuchman Oct 28, 2017
6405618
Revert "Upgrade keys to use bcrypt with salts (#38)"
ebuchman Oct 28, 2017
377d3c7
fix from revert
ebuchman Oct 28, 2017
d2b1a70
changelog
ebuchman Oct 28, 2017
dd20358
Merge pull request #47 from tendermint/release-v0.4.1
ebuchman Oct 28, 2017
b0cf4b4
PubKeyFromBytes: return zero value PubKey on error
odeke-em Oct 28, 2017
b4f04f1
Merge pull request #49 from tendermint/pubKey-invalid-data-returns-em…
ebuchman Nov 6, 2017
a2583e2
Draft of suggested changes
jaekwon Nov 1, 2017
ac841a6
Fixed imports
ethanfrey Nov 2, 2017
946c9c5
Handle generating keys
ethanfrey Nov 2, 2017
9ef978c
Fix errors except for es missing
ethanfrey Nov 2, 2017
4173d10
go build compiles
ethanfrey Nov 2, 2017
2d4544d
Tests compile
ethanfrey Nov 2, 2017
9d78be4
Update tmlibs to sdk-develop, fix broken test
ethanfrey Nov 13, 2017
2649c05
Minor cleanup
ethanfrey Nov 13, 2017
086e1f6
Make vetshadow and zach happy
ethanfrey Nov 15, 2017
468c418
Merge pull request #51 from tendermint/keystore
ethanfrey Nov 29, 2017
eaf4b8c
fix Equals
ebuchman Dec 22, 2017
43cc4fb
Merge pull request #53 from tendermint/constant-time-equals
ebuchman Dec 22, 2017
62115b5
CRandHex: fix up doc to mention length of digits
odeke-em Dec 23, 2017
9472476
Update Makefile
jaekwon Dec 26, 2017
4041adb
Merge pull request #54 from tendermint/cRandHex-doc-fix
ebuchman Dec 27, 2017
f48baf8
Add Address type which is HexBytes
jaekwon Dec 27, 2017
87f2005
hd: comments and some cleanup
ebuchman Dec 30, 2017
7c77f6b
move hd into keys/hd
ebuchman Dec 30, 2017
1f8e66f
nano: update comments
ebuchman Dec 22, 2017
f3f49c2
keys/words
ebuchman Dec 30, 2017
bd30cb4
keys/keybase.go: comments and fixes
ebuchman Dec 30, 2017
8c61bb2
fix nano test
ebuchman Dec 30, 2017
d058d00
keys/bcrypt
ebuchman Dec 30, 2017
b31d37b
update circle.yml
ebuchman Dec 30, 2017
8bb383c
Merge pull request #59 from tendermint/sdk2-cleanup
ebuchman Jan 2, 2018
793d771
no metalinter for now
ebuchman Jan 2, 2018
156416f
fix wordlist paths
ebuchman Jan 2, 2018
3ebe325
Merge pull request #58 from tendermint/sdk2
ebuchman Jan 4, 2018
67a47e6
Address is a type alias
ebuchman Jan 6, 2018
788cc0a
Use new go-wire; PubKey etc are interfaces; Keybase refactor
jaekwon Jan 14, 2018
442dab4
Merge pull request #63 from tendermint/sdk2-newwire
jaekwon Jan 14, 2018
32741be
update glide for go-wire and tmlibs
ebuchman Jan 14, 2018
12142af
Remove reliance on global wire.Marshal
jaekwon Jan 22, 2018
6b2409f
Update go-wire to develop
Feb 2, 2018
0391e49
Clean up glide.yaml
Feb 2, 2018
45b71f7
Bump tmlibs commit. Needs to be changed to develop as soon as tmlibs …
Feb 2, 2018
4542cc5
Merge pull request #64 from tendermint/sdk2
ebuchman Feb 3, 2018
9e897ab
update glide
ebuchman Feb 3, 2018
5a94049
update glide again
ebuchman Feb 3, 2018
4fc3055
update glide again
ebuchman Feb 3, 2018
b6d0290
Switch to dep from glide for dependency resolution
zmanian Feb 25, 2018
3570c2e
Fix test in makefile
zmanian Feb 25, 2018
6c6d01b
Keybase refactor
ebuchman Mar 2, 2018
3a92931
changelog, version, glide
ebuchman Mar 2, 2018
c3e19f3
Merge pull request #73 from tendermint/develop-pre-wire
ebuchman Mar 2, 2018
e05ba95
Merge branch 'master' into develop
ebuchman Mar 2, 2018
5e07356
use previously working new go-wire. not bleeding edge
ebuchman Mar 2, 2018
69e960d
Merge pull request #71 from zmanian/dep
ebuchman Mar 2, 2018
f499ce8
update go-amino
melekes Mar 12, 2018
47b8a88
remove any mention of glide
melekes Mar 12, 2018
73407e7
add CODEOWNERS file
melekes Mar 12, 2018
7dee27c
Merge pull request #76 from tendermint/update-go-amino
jaekwon Mar 16, 2018
a3800da
Update Gopkg.lock to use go-amino
jaekwon Mar 16, 2018
f010462
Make concrete registered name be tendermint/*
jaekwon Mar 18, 2018
a04f2ae
tmlibs 0.8.0-dev; canonical concrete names
jaekwon Mar 25, 2018
0d4436d
Use MarshalBinaryBare; Fix encode_test; Bump version
jaekwon Mar 26, 2018
5d5f580
Update changelog for v0.6.1
jaekwon Mar 26, 2018
7fb3f70
Update README with examples; Add signature test
jaekwon Mar 26, 2018
9c02c8c
Add import/export of public keys #79
Apr 4, 2018
105847b
Fix comments
Apr 5, 2018
9154169
update for latest amino. bump version
ebuchman Apr 9, 2018
ad837a8
fix ed25519 Generate
ebuchman May 5, 2018
aefb6c5
Merge pull request #87 from tendermint/bucky/fix-ed-gen
ebuchman May 7, 2018
94ce56d
Use constant-time comparator (sublte.ConstantTimeCompare) to compare
liamsi May 9, 2018
3477dd7
safer PRNG seeding: hash concatenation of fresh seedBytes with curren…
liamsi May 9, 2018
35cf21c
Update README.md
jaekwon May 9, 2018
4357038
Update README.md
jaekwon May 9, 2018
1c8dffa
Initial implementation of xchacha20poly1035 aead
zmanian May 13, 2018
1c9ff46
Ledger integration, WIP
cwgoes Apr 30, 2018
065c394
Fix no-Ledger testcase
cwgoes Apr 30, 2018
e25a64f
Fix testcases, all looks OK
cwgoes Apr 30, 2018
391936b
Prevent unnecessary signatures, improve error messages
cwgoes May 2, 2018
86b09b0
Bugfix
cwgoes May 3, 2018
49e03fb
Update dependency versions
cwgoes May 9, 2018
337ad8e
Update to new Ledger API in progress
cwgoes May 10, 2018
e6d0ade
Update to latest upstream, debugging information
cwgoes May 14, 2018
aa2b6b5
Remove outdated non-building code in _nano
liamsi May 15, 2018
9136140
get rid of go-bindata dependency in Makefile; hardcode its output ins…
liamsi May 15, 2018
3fe985e
fix makefile
liamsi May 15, 2018
906331a
Merge pull request #100 from Liamsi/nano_wallet
ebuchman May 16, 2018
82e1138
Ledger integration (PoC)
cwgoes Apr 30, 2018
3f5fec5
Swap to new go-crypto
cwgoes May 1, 2018
f8c5f3a
List keys & send transactions
cwgoes May 2, 2018
fda9933
Update go-crypto
cwgoes May 3, 2018
b6cfcfb
Update dependency versions, quick paths
cwgoes May 10, 2018
6ecdf29
Update upstream dependencies
cwgoes May 14, 2018
de6608e
Rebase onto develop
cwgoes May 17, 2018
844945c
Avoid base64 encoding
cwgoes May 17, 2018
da66010
Revert schema change
cwgoes May 17, 2018
a8910a3
Merge branch 'develop' into go-bindata
liamsi May 20, 2018
3399ca9
Merge pull request #101 from Liamsi/go-bindata
ebuchman May 21, 2018
8423f6e
Add the libsodium test vector
zmanian May 22, 2018
f9b0820
Merge branch 'develop' into xChaChaPoly1035
zmanian May 22, 2018
134fdf7
bring in merkle from tmlibs
ebuchman May 22, 2018
4663ffd
add tmhash
ebuchman May 22, 2018
c2636c3
tmhash: add Sum function
ebuchman May 22, 2018
384f1e3
Fixed the directory name and added a test vector
zmanian May 23, 2018
05a5294
Remove panic and check the round trip
zmanian May 23, 2018
f0b1f6e
Merge pull request #98 from zmanian/xChaChaPoly1035
ebuchman May 23, 2018
707d27c
Fix dead link in README.md (#106)
vrde May 24, 2018
e534559
Update upstream Ledger code
cwgoes May 29, 2018
3e0e214
Merge branch 'develop' into cwgoes/ledger-integration
cwgoes May 29, 2018
b16bf1b
Minor fixups after merge
cwgoes May 29, 2018
34ac479
Messages must be JSON-encoded
cwgoes May 30, 2018
ac1f059
Clarify errors in CLI
cwgoes May 30, 2018
3186dc4
Clarify function names
cwgoes May 30, 2018
ee411da
Add ed25519, tests will fail until ed25519 verification fix
cwgoes May 30, 2018
c689f38
Implement PubKeyLedgerEd25519
cwgoes May 30, 2018
bb81e4a
Pin to an upstream revision
cwgoes May 30, 2018
fe69bf4
Update upstream version
cwgoes May 30, 2018
9f04935
merkle: remove unused funcs. unexport simplemap. improv docs
ebuchman May 22, 2018
862d3c3
commit doc.go
liamsi May 30, 2018
52bd867
merkle: use amino for byteslice encoding
ebuchman May 30, 2018
251041c
Merge pull request #105 from tendermint/bucky/merkle
ebuchman May 30, 2018
f9d094d
Merge pull request #97 from Liamsi/prng_seed
ebuchman May 30, 2018
aa32121
Merge pull request #80 from alessio/keymanager
ebuchman May 30, 2018
20fdec6
fix comment
ebuchman May 30, 2018
434759e
Merge pull request #94 from Liamsi/const_time
ebuchman May 30, 2018
21b821d
SignatureKey -> Signature
ebuchman May 30, 2018
9706935
fix link in readme
ebuchman May 30, 2018
eadc7b1
Merge branch 'master' into develop
ebuchman May 30, 2018
e1ce3ff
changelog and version
ebuchman May 31, 2018
1ff1aa5
Merge branch 'develop' into cwgoes/ledger-integration
cwgoes May 31, 2018
63aac65
Remove Ledger ed25519 support, for now
cwgoes May 31, 2018
80e9752
Move TODOs to #114
cwgoes May 31, 2018
2bbad9d
Merge pull request #85 from tendermint/cwgoes/ledger-integration
cwgoes May 31, 2018
c0ddda5
Merge PR #1133: Update cwgoes/ledger-integration to latest develop
Jun 4, 2018
436ca74
Merge remote-tracking branch 'origin/develop' into cwgoes/ledger-inte…
cwgoes Jun 4, 2018
35659a7
Fixup dependencies
cwgoes Jun 4, 2018
47ce9bc
Merge remote-tracking branch 'origin/develop' into cwgoes/ledger-inte…
cwgoes Jun 4, 2018
e0fa2e1
Merge remote-tracking branch 'origin/develop' into cwgoes/ledger-inte…
cwgoes Jun 7, 2018
fabdb13
Pin to upstream branch
cwgoes Jun 7, 2018
710efe5
Merge pull request #113 from tendermint/release/v0.7.0
ebuchman Jun 9, 2018
854eb32
dev version bump
ebuchman Jun 9, 2018
f6c960c
Merge branch 'develop' of https://github.com/tendermint/go-crypto int…
ebuchman Jun 9, 2018
88590b5
Update upstream versions
cwgoes Jun 9, 2018
82452a4
Update SDK for new keybase.Info interface
cwgoes Jun 9, 2018
c21f67c
Unify local and external keys in keybase interface (#117)
cwgoes Jun 10, 2018
66794a1
Move from tmlibs #213 (#115)
mossid Jun 11, 2018
8e09b43
Update upstream tracking information
cwgoes Jun 11, 2018
b3dea00
Merge remote-tracking branch 'origin/develop' into cwgoes/ledger-inte…
cwgoes Jun 11, 2018
e694c30
update ed25519 address scheme (#112)
ebuchman Jun 11, 2018
45a1c8a
fix tests, move encoding to encode_test.go, include an example
liamsi Jun 11, 2018
f4663e5
fix tests, bump amino version, move encoding to encode_test.go,
liamsi Jun 11, 2018
c4484c4
Merge remote-tracking branch 'remotes/origin/develop' into bucky/sig-…
liamsi Jun 11, 2018
6c27f61
Update testsuite for new go-crypto API
cwgoes Jun 11, 2018
e552d34
forgot PrivKeyLedgerSecp256k1
liamsi Jun 11, 2018
260d69f
Merge pull request #110 from tendermint/bucky/sig-name
xla Jun 11, 2018
42c6a64
version bump (#128)
liamsi Jun 12, 2018
6eee53e
Merge remote-tracking branch 'origin/develop' into cwgoes/ledger-inte…
cwgoes Jun 12, 2018
8e27322
Remove error from priv.PubKey() (#131)
cwgoes Jun 12, 2018
23e338c
Update upstream tracking information
cwgoes Jun 12, 2018
d829916
Update tests for new go-crypto API
cwgoes Jun 12, 2018
1b67fa3
Update tests for new Amino version
cwgoes Jun 12, 2018
4edea0d
Update upstream Tendermint version
cwgoes Jun 13, 2018
e53ba72
Update 'gaiacli keys add' for Ledger HD derivation
cwgoes Jun 13, 2018
456706a
Only ask for passphrase when signing with a local key
cwgoes Jun 13, 2018
4ee93ea
Merge remote-tracking branch 'origin/develop' into cwgoes/ledger-inte…
cwgoes Jun 13, 2018
41369d7
circleci 2.0 (#134)
liamsi Jun 14, 2018
f804950
Merge branch 'develop' into cwgoes/ledger-integration
cwgoes Jun 14, 2018
1a2f468
fix circleci 2.0 config (#139)
liamsi Jun 15, 2018
185e43c
Merge branch 'develop' into cwgoes/ledger-integration
cwgoes Jun 19, 2018
e769390
Update go-amino version
cwgoes Jun 19, 2018
6526519
Marshal/Unmarshal sdk.Int as JSON string
cwgoes Jun 19, 2018
fed8807
Switch xchachapoly to hkdfchachapoly (#135)
ValarDragon Jun 20, 2018
e21a64f
Merge branch 'develop' into cwgoes/ledger-integration
cwgoes Jun 20, 2018
4634063
keys package: fundraiser compatibility and HD keys (BIP 39 & BIP 32 /…
liamsi Jun 20, 2018
a589e0e
delete keys package
liamsi Jun 20, 2018
7ebc7c0
delete keys package
liamsi Jun 20, 2018
c7a842a
Update Gopkg.lock
cwgoes Jun 20, 2018
edb36d3
Merge PR #142: Delete keys package & Ledger integration; update tests
cwgoes Jun 20, 2018
e09f71a
Merge remote-tracking branch 'origin/develop' into cwgoes/ledger-inte…
cwgoes Jun 20, 2018
121164b
WIP: Catch up on develop & some dependency hell
liamsi Jun 23, 2018
fe740fb
WIP some fixes & update deps
liamsi Jun 26, 2018
b536276
WIP fix import paths/catch up with tendermint/tendermint/crypto
liamsi Jun 26, 2018
16c566e
WIP fix import paths/catch up with tendermint/tendermint/abci
liamsi Jun 26, 2018
c213dce
WIP handle err on Sign from tendermint/tendermint/crypto
liamsi Jun 26, 2018
64c1b90
temporarily delete everything (prep. mergging go-crypto/keys)
liamsi Jun 26, 2018
af14fc8
Merge remote-tracking branch 'crypto/develop' into cwgoes/ledger-inte…
liamsi Jun 26, 2018
48491f1
Revert "delete keys package"
liamsi Jun 26, 2018
9e4003e
Revert "delete keys package"
liamsi Jun 26, 2018
205b1fb
Only keep the keys package!
liamsi Jun 26, 2018
12fd3ce
Revert "temporarily delete everything (prep. mergging go-crypto/keys)"
liamsi Jun 26, 2018
94d4057
Revert "delete keys package"
liamsi Jun 26, 2018
d35373b
Merge keys & ledger file
liamsi Jun 26, 2018
a3b8c6a
WIP Merge keys & ledger files
liamsi Jun 26, 2018
22663c9
WIP Merge keys & ledger files
liamsi Jun 26, 2018
03c69ee
re-add accidentally removed top-level files
liamsi Jun 26, 2018
d7194b1
Merge pull request #1386 from Liamsi/cwgoes/ledger-integration
cwgoes Jun 26, 2018
2f4b1f7
Merge branch 'develop' into cwgoes/ledger-integration
cwgoes Jun 27, 2018
4314b29
Cherry-pick tmlibs/common.Error, fixup dependencies
jaekwon Jun 7, 2018
379e1b9
Update a few tmserver calls
cwgoes Jun 27, 2018
906c718
Remove a few unnecessary changes
cwgoes Jun 27, 2018
ab75ac4
Update changelog
cwgoes Jun 27, 2018
bb8ba6a
Address PR comments
cwgoes Jun 27, 2018
a735528
Unit test fixes
cwgoes Jun 27, 2018
89b8632
More unit testcase fixes
cwgoes Jun 27, 2018
c7f42d2
Fix linter errors
cwgoes Jun 27, 2018
4301072
json.RawMessage; list key type
cwgoes Jun 27, 2018
fa02576
cdc.MarshalJSON in x/gov REST handler
cwgoes Jun 27, 2018
17f9fb2
Update codespace logic
cwgoes Jun 27, 2018
a25d60a
EnsureAccountNumber
cwgoes Jun 27, 2018
b9eeaa1
Revert some unnecessary changes
cwgoes Jun 27, 2018
2294cb0
Merge branch 'develop' into cwgoes/ledger-integration
cwgoes Jun 27, 2018
2bbfea5
Fixes from merge
cwgoes Jun 27, 2018
a0305eb
Keep indented JSON
cwgoes Jun 27, 2018
d4a3696
Merge branch 'develop' into cwgoes/ledger-integration
cwgoes Jun 27, 2018
b0413dd
Merge branch 'develop' into cwgoes/ledger-integration
cwgoes Jun 28, 2018
ed50f7d
Linter fixes
cwgoes Jun 28, 2018
0bfe984
Pin fixed IAVL version
cwgoes Jun 28, 2018
503c751
Final tiny testcase fixes
cwgoes Jun 28, 2018
3b447d1
Merge branch 'develop' into cwgoes/ledger-integration
cwgoes Jun 28, 2018
4357a65
Fix crypto imports
ValarDragon Jun 28, 2018
1256170
json.Marshal => cdc.MarshalJSON
cwgoes Jun 28, 2018
03459a7
Merge branch 'cwgoes/ledger-integration' of github.com:cosmos/cosmos-…
cwgoes Jun 28, 2018
3533fc5
Update LCD keys endpoint
cwgoes Jun 28, 2018
22414b3
More json.Marshal => cdc.MarshalJSON, can we lint this?
cwgoes Jun 28, 2018
7770204
Fix governance query unmarshal
cwgoes Jun 29, 2018
2150b33
Update pinned IAVL version
cwgoes Jun 29, 2018
1def15c
gofmt -w
cwgoes Jun 29, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
Next Next commit
Revert "temporarily delete everything (prep. mergging go-crypto/keys)"
This reverts commit 64c1b90.
  • Loading branch information
liamsi committed Jun 26, 2018
commit 12fd3cea88aef29b04d2310503cec743b62e297b
699 changes: 699 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* @jaekwon
* @ebuchman
46 changes: 46 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at adrian@tendermint.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
34 changes: 34 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Simple usage with a mounted data directory:
# > docker build -t gaia .
# > docker run -v $HOME/.gaiad:/root/.gaiad gaia init
# > docker run -v $HOME/.gaiad:/root/.gaiad gaia start

FROM alpine:edge

# Set up dependencies
ENV PACKAGES go make git libc-dev bash linux-headers

# Set up GOPATH & PATH

ENV GOPATH /root/go
ENV BASE_PATH $GOPATH/src/github.com/cosmos
ENV REPO_PATH $BASE_PATH/cosmos-sdk
ENV WORKDIR /cosmos/
ENV PATH $GOPATH/bin:$PATH

# Link expected Go repo path

RUN mkdir -p $WORKDIR $GOPATH/pkg $ $GOPATH/bin $BASE_PATH

# Add source files

ADD . $REPO_PATH

# Install minimum necessary dependencies, build Cosmos SDK, remove packages
RUN apk add --no-cache $PACKAGES && \
cd $REPO_PATH && make get_tools && make get_vendor_deps && make build && make install && \
apk del $PACKAGES

# Set entrypoint

ENTRYPOINT ["gaiad"]
78 changes: 78 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true

[[constraint]]
name = "github.com/bgentry/speakeasy"
version = "~0.1.0"

[[constraint]]
name = "github.com/golang/protobuf"
version = "~1.0.0"

[[constraint]]
name = "github.com/mattn/go-isatty"
version = "~0.0.3"

[[constraint]]
name = "github.com/pkg/errors"
version = "~0.8.0"

[[constraint]]
name = "github.com/spf13/cobra"
version = "~0.0.1"

[[constraint]]
name = "github.com/spf13/viper"
version = "~1.0.0"

[[constraint]]
name = "github.com/stretchr/testify"
version = "~1.2.1"

[[constraint]]
name = "github.com/tendermint/go-amino"
version = "=0.10.1"

[[constraint]]
name = "github.com/tendermint/iavl"
version = "=0.8.0"

[[constraint]]
name = "github.com/tendermint/tendermint"
revision = "8412b75b1070ac023405e8228e017ed36531fe1b"

[[override]]
name = "github.com/tendermint/tmlibs"
revision = "e09e3a56f323c3efa3653e513540f1686a5374b2"

# this got updated and broke, so locked to an old working commit ...
[[override]]
name = "google.golang.org/genproto"
revision = "7fd901a49ba6a7f87732eb344f6e3c5b19d1b200"

[prune]
go-tests = true
unused-packages = true
204 changes: 204 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
Cosmos-SDK
License: Apache2.0

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2016 All in Bits, Inc

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Loading