Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PrivKeySize defines the length of the PrivKey byte array. PrivKeySize = 32 // PubKeySize defines the length of the PubKey byte array. PubKeySize = 48 // SignatureLength defines the byte length of a BLS signature. SignatureLength = 96 // KeyType is the string constant for the BLS12-381 algorithm. KeyType = "bls12_381" // MaxMsgLen defines the maximum length of the message bytes as passed to Sign. MaxMsgLen = 32 // BLS12-381 private key name. PrivKeyName = "cometbft/PrivKeyBls12_381" // BLS12-381 public key name. PubKeyName = "cometbft/PubKeyBls12_381" )
View Source
const ( // Enabled indicates if this curve is enabled. Enabled = false )
Variables ¶
View Source
var ErrDisabled = errors.New("bls12_381 is disabled")
ErrDisabled is returned if the caller didn't use the `bls12381` build tag or has an incompatible OS.
Functions ¶
This section is empty.
Types ¶
type PrivKey ¶
type PrivKey []byte
PrivKey represents a BLS private key noop when blst is not set as a build flag and cgo is disabled.
func NewPrivateKeyFromBytes ¶
NewPrivateKeyFromBytes returns ErrDisabled.
Click to show internal directories.
Click to hide internal directories.