Ed25519PrivateKey
type Ed25519PrivateKey
type Ed25519PrivateKey struct {
// contains filtered or unexported fields
}
func Ed25519PrivateKeyFromBech32
func Ed25519PrivateKeyFromBech32(value string) (*Ed25519PrivateKey, error)
Decode a private key from `flag || privkey` in Bech32 starting with "iotaprivkey".
func Ed25519PrivateKeyFromDer
func Ed25519PrivateKeyFromDer(bytes []byte) (*Ed25519PrivateKey, error)
Deserialize PKCS#8 private key from ASN.1 DER-encoded data (binary format).
func Ed25519PrivateKeyFromMnemonic
func Ed25519PrivateKeyFromMnemonic(phrase string, accountIndex uint64, password string) (*Ed25519PrivateKey, error)
Construct the private key from a mnemonic phrase
func Ed25519PrivateKeyFromMnemonicWithPath
func Ed25519PrivateKeyFromMnemonicWithPath(phrase string, path string, password string) (*Ed25519PrivateKey, error)
Create an instance from a mnemonic phrase and a derivation path like `"m/44'/4218'/0'/0'/0'"`
func Ed25519PrivateKeyFromPem
func Ed25519PrivateKeyFromPem(s string) (*Ed25519PrivateKey, error)
Deserialize PKCS#8-encoded private key from PEM.
func Ed25519PrivateKeyRandom
func Ed25519PrivateKeyRandom() *Ed25519PrivateKey
func LiftFromExternalEd25519PrivateKey
func LiftFromExternalEd25519PrivateKey(handle uint64) *Ed25519PrivateKey
func NewEd25519PrivateKey
func NewEd25519PrivateKey(bytes []byte) (*Ed25519PrivateKey, error)
func (*Ed25519PrivateKey) DebugString
func (_self *Ed25519PrivateKey) DebugString() string
func (*Ed25519PrivateKey) Destroy
func (object *Ed25519PrivateKey) Destroy()
func (*Ed25519PrivateKey) Eq
func (_self *Ed25519PrivateKey) Eq(other *Ed25519PrivateKey) bool
func (*Ed25519PrivateKey) Ne
func (_self *Ed25519PrivateKey) Ne(other *Ed25519PrivateKey) bool
func (*Ed25519PrivateKey) PublicKey
func (_self *Ed25519PrivateKey) PublicKey() *Ed25519PublicKey
func (*Ed25519PrivateKey) Scheme
func (_self *Ed25519PrivateKey) Scheme() SignatureScheme
func (*Ed25519PrivateKey) SignPersonalMessage
func (_self *Ed25519PrivateKey) SignPersonalMessage(message *PersonalMessage) (*UserSignature, error)
Sign a personal message and return a UserSignature.
func (*Ed25519PrivateKey) SignTransaction
func (_self *Ed25519PrivateKey) SignTransaction(transaction *Transaction) (*UserSignature, error)
Sign a transaction and return a UserSignature.
func (*Ed25519PrivateKey) ToBech32
func (_self *Ed25519PrivateKey) ToBech32() (string, error)
Encode this private key as `flag || privkey` in Bech32 starting with "iotaprivkey" to a string.
func (*Ed25519PrivateKey) ToBytes
func (_self *Ed25519PrivateKey) ToBytes() []byte
Serialize this private key to bytes.
func (*Ed25519PrivateKey) ToDer
func (_self *Ed25519PrivateKey) ToDer() ([]byte, error)
Serialize this private key as DER-encoded PKCS#8
func (*Ed25519PrivateKey) ToPem
func (_self *Ed25519PrivateKey) ToPem() (string, error)
Serialize this private key as PEM-encoded PKCS#8
func (*Ed25519PrivateKey) TrySign
func (_self *Ed25519PrivateKey) TrySign(message []byte) (*Ed25519Signature, error)
func (*Ed25519PrivateKey) TrySignSimple
func (_self *Ed25519PrivateKey) TrySignSimple(message []byte) (*SimpleSignature, error)
func (*Ed25519PrivateKey) TrySignUser
func (_self *Ed25519PrivateKey) TrySignUser(message []byte) (*UserSignature, error)
func (*Ed25519PrivateKey) VerifyingKey
func (_self *Ed25519PrivateKey) VerifyingKey() *Ed25519VerifyingKey