Crate duke_crypto_core

Crate duke_crypto_core 

Source

Structs§

AccountPrivate
Account private key information
KeyPairProperties
Key pair properties with mnemonic and derivation path information
PublicKeyInfo
Public key information extracted from private key

Functions§

decode_private_key
Decode a private key from base58
decode_private_key_ed25519
Decode a private key from ed25519:base58 format
decode_public_key
Decode a public key from base58
decode_public_key_ed25519
Decode a public key from ed25519:base58 format
encode_private_key
Encode a private key to base58
encode_private_key_ed25519
Encode a private key to ed25519:base58 format
encode_public_key
Encode a public key to base58
encode_public_key_ed25519
Encode a public key to ed25519:base58 format
generate_implicit_account_id
Generate implicit account ID from public key
generate_keypair
Generate key pair properties (alias for generate_keypair_properties with default path)
generate_keypair_from_mnemonic
Generate an ED25519 key pair from a mnemonic using SLIP-10 derivation
generate_keypair_from_mnemonic_with_path
Generate an ED25519 key pair from a mnemonic using BIP32 path derivation
generate_keypair_properties
Generate key pair properties from mnemonic (optionally provided) Uses default path m/44’/397’/0’ if no path is provided
generate_keypair_raw
Generate a new ED25519 key pair (raw keys)
generate_mnemonic
Generate a new BIP39 mnemonic phrase (12 words)
get_key_with_account_id
Get key pair with account ID from mnemonic and index
get_key_with_mnemonic_path
Get key pair with mnemonic and BIP32 path
get_mnemonic_with_rand
Generate key pair properties with optional mnemonic If mnemonic is None, generates a new one Uses default path m/44’/397’/0’
get_public_key_from_private
Generate public key information from private key string Takes a private key in ed25519:base58 format and returns the corresponding public key and implicit account ID
get_signer_with_id_key
Get signer with account ID and key string Returns (account_id, secret_key, public_key)
mnemonic_from_phrase
Generate a mnemonic from an existing phrase
sign_message
Sign a message with a signing key
verify_signature
Verify a signature with a verifying key