Key

package
v0.0.0-...-ec97d81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blake224Hash

func Blake224Hash(b []byte, len int) ([]byte, error)

func Sign

func Sign(message []byte, sk []byte) []byte

Types

type PaymentKeyPair

type PaymentKeyPair struct {
	VerificationKey VerificationKey
	SigningKey      SigningKey
}

func PaymentKeyPairGenerate

func PaymentKeyPairGenerate() PaymentKeyPair

type PaymentSigningKey

type PaymentSigningKey SigningKey

type PaymentVerificationKey

type PaymentVerificationKey VerificationKey

type SigningKey

type SigningKey struct {
	Payload []byte
}

func (SigningKey) Sign

func (sk SigningKey) Sign(data []byte) []byte

type StakeSigningKey

type StakeSigningKey SigningKey

type StakeVerificationKey

type StakeVerificationKey VerificationKey

type VerificationKey

type VerificationKey struct {
	Payload []byte
}

func VerificationKeyFromCbor

func VerificationKeyFromCbor(cbor_string string) (*VerificationKey, error)

func (VerificationKey) Hash

func (*VerificationKey) MarshalCBOR

func (vk *VerificationKey) MarshalCBOR() ([]byte, error)

func (*VerificationKey) UnmarshalCBOR

func (vk *VerificationKey) UnmarshalCBOR(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL