Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Implementation ¶
type Implementation[PrivateKey any, PublicKey any] struct { NewPrivateKey func() (PrivateKey, error) MarshalPrivateKey func(key PrivateKey) ([]byte, error) UnmarshalPrivateKey func(b []byte) (PrivateKey, error) Public func(key PrivateKey) PublicKey MarshalPublicKey func(key PublicKey) ([]byte, error) UnmarshalPublicKey func(b []byte) (PublicKey, error) Sign func(key PrivateKey, data []byte) ([]byte, error) Verify func(key PublicKey, data, sig []byte) bool }
Click to show internal directories.
Click to hide internal directories.