1
0
mirror of https://github.com/fluencelabs/tendermint synced 2025-07-27 18:21:55 +00:00
Files
.circleci
.github
DOCKER
abci
behaviour
benchmarks
blockchain
cmd
config
consensus
crypto
docs
evidence
libs
lite
mempool
mock
networks
node
p2p
privval
proxy
rpc
scripts
state
store
test
tools
types
proto3
time
block.go
block_meta.go
block_test.go
canonical.go
codec.go
encoding_helper.go
errors.go
event_bus.go
event_bus_test.go
events.go
events_test.go
evidence.go
evidence_test.go
genesis.go
genesis_test.go
keys.go
params.go
params_test.go
part_set.go
part_set_test.go
priv_validator.go
proposal.go
proposal_test.go
proto3_test.go
protobuf.go
protobuf_test.go
results.go
results_test.go
signable.go
signed_msg_type.go
test_util.go
tx.go
tx_test.go
validation.go
validator.go
validator_set.go
validator_set_test.go
vote.go
vote_set.go
vote_set_test.go
vote_test.go
version
.editorconfig
.gitignore
.golangci.yml
CHANGELOG.md
CHANGELOG_PENDING.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
Makefile
PHILOSOPHY.md
README.md
SECURITY.md
UPGRADING.md
Vagrantfile
appveyor.yml
codecov.yml
docker-compose.yml
dredd.yml
go.mod
go.sum
tendermint/types/signable.go

24 lines
709 B
Go
Raw Normal View History

2015-11-01 11:34:08 -08:00
package types
import (
"github.com/tendermint/tendermint/crypto/ed25519"
cmn "github.com/tendermint/tendermint/libs/common"
)
var (
// MaxSignatureSize is a maximum allowed signature size for the Proposal
// and Vote.
// XXX: secp256k1 does not have Size nor MaxSize defined.
MaxSignatureSize = cmn.MaxInt(ed25519.SignatureSize, 64)
)
2015-11-01 11:34:08 -08:00
// Signable is an interface for all signable things.
// It typically removes signatures before serializing.
// SignBytes returns the bytes to be signed
// NOTE: chainIDs are part of the SignBytes but not
// necessarily the object themselves.
// NOTE: Expected to panic if there is an error marshalling.
2015-11-01 11:34:08 -08:00
type Signable interface {
SignBytes(chainID string) []byte
2015-11-01 11:34:08 -08:00
}