Documentation ¶
Index ¶
Constants ¶
const ( Ed25519KeyHashLen = 28 ScriptHashLen = 28 TransactionHashLen = 32 GenesisDelegateHashLen = 28 GenesisHashLen = 28 MetadataHashLen = 32 VRFKeyHashLen = 32 BlockHashLen = 32 VRFVKeyLen = 32 KESVKeyLen = 32 PublicKeyLen = 32 Blake2b224Len = 28 Blake2b256Len = 32 )
Variables ¶
This section is empty.
Functions ¶
func Blake2b224 ¶
func Blake2b224(data []byte) [Blake2b224Len]byte
Blake2b224 implements https://github.com/Emurgo/cardano-serialization-lib/blob/0e89deadf9183a129b9a25c0568eed177d6c6d7c/rust/src/crypto.rs#L15
func Blake2b256 ¶
func Blake2b256(data []byte) [Blake2b256Len]byte
Blake2b256 implements https://github.com/Emurgo/cardano-serialization-lib/blob/0e89deadf9183a129b9a25c0568eed177d6c6d7c/rust/src/crypto.rs#L15
Types ¶
type BlockHash ¶
type BlockHash [BlockHashLen]byte
func BlockHashFromBytes ¶
BlockHashFromBytes implements https://github.com/Emurgo/cardano-serialization-lib/blob/0e89deadf9183a129b9a25c0568eed177d6c6d7c/rust/src/crypto.rs#L700
type Ed25519KeyHash ¶
type Ed25519KeyHash [Ed25519KeyHashLen]byte
func Ed25519KeyHashFromBytes ¶
func Ed25519KeyHashFromBytes(bytes []byte) (Ed25519KeyHash, error)
Ed25519KeyHashFromBytes implements https://github.com/Emurgo/cardano-serialization-lib/blob/0e89deadf9183a129b9a25c0568eed177d6c6d7c/rust/src/crypto.rs#L700
type GenesisDelegateHash ¶
type GenesisDelegateHash [GenesisDelegateHashLen]byte
func GenesisDelegateHashFromBytes ¶
func GenesisDelegateHashFromBytes(bytes []byte) (GenesisDelegateHash, error)
GenesisDelegateHashFromBytes implements https://github.com/Emurgo/cardano-serialization-lib/blob/0e89deadf9183a129b9a25c0568eed177d6c6d7c/rust/src/crypto.rs#L700
type GenesisHash ¶
type GenesisHash [GenesisHashLen]byte
func GenesisHashFromBytes ¶
func GenesisHashFromBytes(bytes []byte) (GenesisHash, error)
GenesisHashFromBytes implements https://github.com/Emurgo/cardano-serialization-lib/blob/0e89deadf9183a129b9a25c0568eed177d6c6d7c/rust/src/crypto.rs#L700
type KESVKey ¶
type KESVKey [KESVKeyLen]byte
func KESVKeyFromBytes ¶
KESVKeyFromBytes implements https://github.com/Emurgo/cardano-serialization-lib/blob/0e89deadf9183a129b9a25c0568eed177d6c6d7c/rust/src/crypto.rs#L700
type MetadataHash ¶
type MetadataHash [MetadataHashLen]byte
func MetadataHashFromBytes ¶
func MetadataHashFromBytes(bytes []byte) (MetadataHash, error)
MetadataHashFromBytes implements https://github.com/Emurgo/cardano-serialization-lib/blob/0e89deadf9183a129b9a25c0568eed177d6c6d7c/rust/src/crypto.rs#L700
type ScriptHash ¶
type ScriptHash [ScriptHashLen]byte
func ScriptHashFromBytes ¶
func ScriptHashFromBytes(bytes []byte) (ScriptHash, error)
ScriptHashFromBytes implements https://github.com/Emurgo/cardano-serialization-lib/blob/0e89deadf9183a129b9a25c0568eed177d6c6d7c/rust/src/crypto.rs#L700
type TransactionHash ¶
type TransactionHash [TransactionHashLen]byte
func TransactionHashFromBytes ¶
func TransactionHashFromBytes(bytes []byte) (TransactionHash, error)
TransactionHashFromBytes implements https://github.com/Emurgo/cardano-serialization-lib/blob/0e89deadf9183a129b9a25c0568eed177d6c6d7c/rust/src/crypto.rs#L700
type VRFKeyHash ¶
type VRFKeyHash [VRFKeyHashLen]byte
func VRFKeyHashFromBytes ¶
func VRFKeyHashFromBytes(bytes []byte) (VRFKeyHash, error)
VRFKeyHashFromBytes implements https://github.com/Emurgo/cardano-serialization-lib/blob/0e89deadf9183a129b9a25c0568eed177d6c6d7c/rust/src/crypto.rs#L700
type VRFVKey ¶
type VRFVKey [VRFVKeyLen]byte
func VRFVKeyFromBytes ¶
VRFVKeyFromBytes implements https://github.com/Emurgo/cardano-serialization-lib/blob/0e89deadf9183a129b9a25c0568eed177d6c6d7c/rust/src/crypto.rs#L700