Documentation ¶
Index ¶
Constants ¶
View Source
const (
ECDSA = iota
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
type PrivateKey interface { Address() string PublicKey() PublicKey Type() Type Sign(hash []byte) ([]byte, error) PlainExport() ([]byte, error) SecureExport(passphrase string) ([]byte, error) }
func NewPrivateKey ¶
func NewPrivateKey(keyType Type) (PrivateKey, error)
func NewPrivateKeyFromEncryptedData ¶
func NewPrivateKeyFromEncryptedData(keyType Type, payload []byte, passphrase string) (PrivateKey, error)
func NewPrivateKeyFromPlainData ¶
func NewPrivateKeyFromPlainData(keyType Type, payload []byte) (PrivateKey, error)
Click to show internal directories.
Click to hide internal directories.