Ethan Buchman
7a5060dc52
replace data.Bytes with cmn.HexBytes
2018-02-03 03:47:01 -05:00
Ethan Buchman
cd0fd06b0d
update for sdk2 libs. need to fix kv test
...
NOTE we only updating for tmlibs and abci
2018-02-03 03:35:02 -05:00
Adrian Brink
32311acd01
Vulnerability in light client proxy ( #1081 )
...
* Vulnerability in light client proxy
When calling GetCertifiedCommit the light client proxy would call
Certify and even on error return the Commit as if it had been correctly
certified.
Now it returns the error correctly and returns an empty Commit on error.
* Improve names for clarity
The lite package now contains StaticCertifier, DynamicCertifier and
InqueringCertifier. This also changes the method receivers from one
letter to two letter names, which will make future refactoring easier
and follows the coding standards.
* Fix test failures
* Rename files
* remove dead code
2018-01-09 10:36:11 -06:00
Ethan Buchman
b9cbaf8f10
priv-val: fix timestamp for signing things that only differ by timestamp
2018-01-08 16:36:16 -05:00
Ethan Buchman
f81025631e
update comment [ci skip]
2017-12-21 16:28:05 -05:00
Ethan Buchman
9c03c58de2
priv validator checks if only difference is timestamp; else error
2017-12-21 15:37:27 -05:00
Anton Kaliaev
a1cc9ac642
priv validator returns last sign bytes if h/r/s matches
...
since now we have time in the msgs and we might crash between writing
the priv val and writing to wal.
Refs #984
2017-12-20 14:41:43 -06:00
Anton Kaliaev
922af7c405
int64 height
...
uint64 is considered dangerous. the details will follow in a blog post.
2017-12-01 19:04:53 -06:00
Anton Kaliaev
b3492356e6
uint64 height (Refs #911 )
2017-12-01 17:17:22 -05:00
Ethan Buchman
24f7b9387a
more tests
2017-09-22 00:05:39 -04:00
Ethan Buchman
756818f940
fixes from review
2017-09-21 21:44:36 -04:00
Ethan Buchman
2131f8d330
some fixes from review
2017-09-21 17:21:20 -04:00
Ethan Buchman
8ae2ffda89
put funcs back in order to simplify review
2017-09-21 16:59:25 -04:00
Ethan Buchman
75b97a5a65
PrivValidatorFS is like old PrivValidator, for now
2017-09-21 16:46:31 -04:00
Ethan Buchman
7b99039c34
make signBytesHRS a method on LastSignedInfo
2017-09-21 15:54:33 -04:00
Ethan Buchman
3ca7b10ad4
types: more . -> cmn
2017-09-21 15:54:33 -04:00
Ethan Buchman
4382c8d28b
fix tests
2017-09-21 15:52:25 -04:00
Ethan Buchman
944ebccfe9
more PrivValidator interface
2017-09-21 15:51:20 -04:00
Ethan Buchman
fd1b0b997a
PrivValidator interface
2017-09-21 15:51:20 -04:00
Ethan Buchman
abe912c610
FuncSignerAndApp allows custom signer and abci app
2017-09-21 15:50:43 -04:00
Adrian Brink
4e13a19339
Add ability to construct new instance of Tendermint core from scratch
2017-09-21 15:50:43 -04:00
Adrian Brink
7dd3c007c7
Refactor priv_validator
...
Users can now just pass an object that implements the Signer interface.
2017-09-21 15:50:43 -04:00
Duncan Jones
0d392a0442
Allow Signer to be generated with priv key
...
Prior to this change, a custom Signer would have no knowledge of the private
key stored in the configuration file. This changes introduces a generator
function, which creates a Signer based on the private key. This provides an
opportunity for customer Signers to adjust behaviour based on the key
contents. (E.g. imagine key contents are a key label, rather than the key
itself).
2017-09-21 15:50:43 -04:00
Duncan Jones
7e4a704bd1
Remove reliance on default Signer
...
This change allows the default privValidator to use a custom Signer
implementation with no reliance on the default Signer implementation.
2017-09-21 15:50:43 -04:00
Adrian Brink
83f7d5c95a
Setup custom tendermint node
...
By exporting all of the commands, we allow users to setup their own
tendermint node cli. This enables users to provide a different
pivValidator without the need to fork tendermint.
2017-09-21 15:50:43 -04:00
Ethan Buchman
29bfcb0a31
minor comments/changes
2017-09-21 14:51:29 -04:00
Ethan Buchman
90c0267bc1
types: privVal.Sign returns an error
2017-09-16 01:07:04 -04:00
Ethan Buchman
ab753abfa0
Proposer->Proposal; sign heartbeats
2017-07-29 17:04:28 -04:00
Ethan Buchman
42626d9e16
[types] overwrite pubkey/addr in LoadPrivValidator. closes #500
2017-05-25 13:40:13 -04:00
Ethan Buchman
6a30a902c9
[types] more []byte->data.Bytes and some %X->%v
2017-05-17 01:08:41 +02:00
Anton Kaliaev
f8fdbe3dbc
changes as per Bucky's review
2017-05-13 16:22:51 +02:00
Anton Kaliaev
f803544195
new logging
2017-05-13 10:24:58 +02:00
Ethan Buchman
e6fe6b5b76
go-data -> go-wire/data
2017-04-21 18:13:25 -04:00
Ethan Buchman
d1926bcad1
use tmlibs
2017-04-21 18:12:54 -04:00
Ethan Buchman
5da9b3a803
postmerge
2017-04-21 18:09:47 -04:00
Ethan Buchman
0017fb7ffe
premerge
2017-04-21 17:38:40 -04:00
Ethan Frey
6d223d5526
Update to latest go-crypto
2017-04-21 16:55:58 -04:00
Ethan Frey
6a0217688f
Ensure private validator addresses are hex
2017-04-21 16:51:17 -04:00
Ethan Frey
e325ffc681
Lots of updates to use new go-crypto / json style
2017-04-21 16:51:17 -04:00
Ethan Frey
516e78ea54
Fix types to use updated go-crypto
2017-04-21 16:50:27 -04:00
Ethan Buchman
38783e7fa1
types: SignatureEd25519 -> Signature
2016-12-18 00:14:07 -05:00
Ethan Buchman
57da2e4af5
make byzantine logic testable
2016-11-15 18:45:36 -05:00
Ethan Buchman
1110c5d37d
privVal.LastSignBytes and more replay tests
2016-08-14 13:33:03 -04:00
Ethan Buchman
a1c20ce866
types: privVal.LastSignature. closes #247
2016-08-14 13:33:03 -04:00
Jae Kwon
9b4b533f2f
Pretty print JSON
2016-03-19 16:58:15 -07:00
Jae Kwon
81ba1e6177
Use go-crypto's CRand*
2016-03-13 10:01:32 -07:00
Jae Kwon
3f1b567129
Remove signer from JSON output
2016-01-14 08:06:02 -08:00
Jae Kwon
c9dbd81178
Merge remote-tracking branch 'remotes/origin/signer'
...
Conflicts:
types/priv_validator.go
2016-01-12 15:58:48 -08:00
Jae Kwon
b9519391c2
Conform to go-wire new TypeByte behavior for PrivValidator as well
2015-12-21 15:02:37 -08:00
Ethan Buchman
28ec3d48fa
signer interface for validators
2015-12-16 13:07:07 -05:00