Skip to main content

Ed25519PrivateKeyProtocol

Ed25519PrivateKeyProtocol Objects

class Ed25519PrivateKeyProtocol(typing.Protocol)

sign_personal_message

def sign_personal_message(message: PersonalMessage) -> UserSignature

Sign a personal message and return a UserSignature.

sign_transaction

def sign_transaction(transaction: Transaction) -> UserSignature

Sign a transaction and return a UserSignature.

to_bech32

def to_bech32() -> str

Encode this private key as flag || privkey in Bech32 starting with "iotaprivkey" to a string.

to_bytes

def to_bytes() -> bytes

Serialize this private key to bytes.

to_der

def to_der() -> bytes

Serialize this private key as DER-encoded PKCS#8

to_pem

def to_pem() -> str

Serialize this private key as PEM-encoded PKCS#8