Some checks are pending
docker-build-cometbft / vars (push) Waiting to run
docker-build-cometbft / build-images (amd64, ubuntu-24.04) (push) Blocked by required conditions
docker-build-cometbft / build-images (arm64, ubuntu-24.04-arm) (push) Blocked by required conditions
docker-build-cometbft / merge-images (push) Blocked by required conditions
docker-build-e2e-node / vars (push) Waiting to run
docker-build-e2e-node / build-images (amd64, ubuntu-24.04) (push) Blocked by required conditions
docker-build-e2e-node / build-images (arm64, ubuntu-24.04-arm) (push) Blocked by required conditions
docker-build-e2e-node / merge-images (push) Blocked by required conditions
23 lines
728 B
Go
23 lines
728 B
Go
package types
|
|
|
|
import (
|
|
"git.cw.tr/mukan-network/mukan-consensus/crypto/ed25519"
|
|
cmtmath "git.cw.tr/mukan-network/mukan-consensus/libs/math"
|
|
)
|
|
|
|
var (
|
|
// MaxSignatureSize is a maximum allowed signature size for the Proposal
|
|
// and Vote.
|
|
// XXX: secp256k1 does not have Size nor MaxSize defined.
|
|
MaxSignatureSize = cmtmath.MaxInt(ed25519.SignatureSize, 64)
|
|
)
|
|
|
|
// 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 marshaling.
|
|
type Signable interface {
|
|
SignBytes(chainID string) []byte
|
|
}
|