SimpleKeypairInterface
type SimpleKeypairInterface
type SimpleKeypairInterface interface {
PublicKey() *PublicKey
Scheme() SignatureScheme
// Sign a personal message and return a UserSignature.
SignPersonalMessage(message *PersonalMessage) (*UserSignature, error)
// Sign a transaction and return a UserSignature.
SignTransaction(transaction *Transaction) (*UserSignature, error)
// Encode a SimpleKeypair as `flag || privkey` in Bech32 starting with
// "iotaprivkey" to a string. Note that the pubkey is not encoded.
ToBech32() (string, error)
// Encode a SimpleKeypair as `flag || privkey` in bytes
ToBytes() []byte
// Serialize this private key as DER-encoded PKCS#8
ToDer() ([]byte, error)
// Serialize this private key as DER-encoded PKCS#8
ToPem() (string, error)
TrySign(message []byte) (*SimpleSignature, error)
TrySignUser(message []byte) (*UserSignature, error)
VerifyingKey() *SimpleVerifyingKey
}