Documentation ¶
Index ¶
- Constants
- Variables
- func BatchVerifyEpochs(signedHeaders []*SignedBlockHeader, ...) error
- func BatchVerifyStrict(batches []*Batch, shouldUseCompositeHasher, shouldUseCIP22 bool) ([]bool, error)
- func CompressPublickey(pubkey []byte) ([]byte, error)
- func CompressSignature(signature []byte) ([]byte, error)
- func EncodeEpochToBytes(epochIndex uint16, maximumNonSigners uint32, addedPublicKeys []*PublicKey) ([]byte, error)
- func EncodeEpochToBytesCIP22(epochIndex uint16, round uint8, blockHash, parentHash EpochEntropy, ...) ([]byte, []byte, error)
- func HashCRH(message []byte, hashBytes int32) ([]byte, error)
- func HashComposite(message []byte, extraData []byte) ([]byte, error)
- func HashCompositeCIP22(message []byte, extraData []byte) ([]byte, uint8, error)
- func HashDirect(message []byte, usePoP bool) ([]byte, error)
- func HashDirectFirstStep(message []byte, hashBytes int32) ([]byte, error)
- func HashDirectWithAttempt(message []byte, usePoP bool) ([]byte, uint, error)
- func InitBLSCrypto()
- type Batch
- type EpochEntropy
- type PrivateKey
- type PublicKey
- func AggregatePublicKeys(publicKeys []*PublicKey) (*PublicKey, error)
- func AggregatePublicKeysSubtract(aggregatedPublicKey *PublicKey, publicKeys []*PublicKey) (*PublicKey, error)
- func DeserializePublicKey(publicKeyBytes []byte) (*PublicKey, error)
- func DeserializePublicKeyCached(publicKeyBytes []byte) (*PublicKey, error)
- type Signature
- type SignedBlockHeader
Constants ¶
View Source
const ( MODULUS377 = blsRoute.MODULUS377 MODULUSBITS = blsRoute.MODULUSBITS MODULUSMASK = blsRoute.MODULUSMASK PRIVATEKEYBYTES = blsRoute.PRIVATEKEYBYTES PUBLICKEYBYTES = blsRoute.PUBLICKEYBYTES SIGNATUREBYTES = blsRoute.SIGNATUREBYTES EPOCHENTROPYBYTES = blsRoute.EPOCHENTROPYBYTES )
Variables ¶
View Source
var ( GeneralError = blsRoute.GeneralError NotVerifiedError = blsRoute.NotVerifiedError IncorrectSizeError = blsRoute.IncorrectSizeError NilPointerError = blsRoute.NilPointerError EmptySliceError = blsRoute.EmptySliceError )
Functions ¶
func BatchVerifyEpochs ¶
func BatchVerifyEpochs(signedHeaders []*SignedBlockHeader, shouldUseCompositeHasher, shouldUseCIP22 bool) error
func BatchVerifyStrict ¶ added in v0.6.1
func CompressPublickey ¶
func CompressSignature ¶
func EncodeEpochToBytes ¶
func EncodeEpochToBytesCIP22 ¶ added in v0.2.4
func HashCompositeCIP22 ¶ added in v0.2.5
func HashDirectFirstStep ¶ added in v0.3.0
func HashDirectWithAttempt ¶ added in v0.3.0
func InitBLSCrypto ¶
func InitBLSCrypto()
Types ¶
type EpochEntropy ¶ added in v0.2.4
type EpochEntropy = blsRoute.EpochEntropy
type PrivateKey ¶
type PrivateKey = blsRoute.PrivateKey
func DeserializePrivateKey ¶
func DeserializePrivateKey(privateKeyBytes []byte) (*PrivateKey, error)
func GeneratePrivateKey ¶
func GeneratePrivateKey() (*PrivateKey, error)
type PublicKey ¶
func AggregatePublicKeys ¶
func DeserializePublicKey ¶
type SignedBlockHeader ¶
type SignedBlockHeader = blsRoute.SignedBlockHeader
Click to show internal directories.
Click to hide internal directories.