Documentation ¶
Index ¶
- Constants
- func DilithiumPKToAddress(publicKey []byte) common.Address
- func GenerateDilithiumKey() (*dilithium.Dilithium, error)
- func HexToDilithium(hexSeedStr string) (*dilithium.Dilithium, error)
- func LoadDilithium(file string) (*dilithium.Dilithium, error)
- func Sign(digestHash []byte, d *dilithium.Dilithium) ([]byte, error)
- func ToDilithiumUnsafe(seed []byte) *dilithium.Dilithium
Constants ¶
View Source
const DigestLength = 32
DigestLength sets the signature digest exact length
View Source
const DilithiumPublicKeyLength = dilithium.CryptoPublicKeyBytes
View Source
const DilithiumSignatureLength = dilithium.CryptoBytes
Variables ¶
This section is empty.
Functions ¶
func DilithiumPKToAddress ¶
func GenerateDilithiumKey ¶
func HexToDilithium ¶
HexToDilithium parses a hex seed (not extended hex seed).
func LoadDilithium ¶
LoadDilithium loads Dilithium from the given file having hex seed (not extended hex seed).
func ToDilithiumUnsafe ¶
ToDilithiumUnsafe blindly converts a binary blob to a private key. It should almost never be used unless you are sure the input is valid and want to avoid hitting errors due to bad origin encoding (0 prefixes cut off).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.