Module crypto

Module crypto 

Source
Expand description

Cryptographic functions.

Structs§

DalekKeyPair
DecoratedSignature
A Signature together with the last 4 bytes of the public key.
HashX
Hash(x)
KeyPair
MuxedEd25519PublicKey
A public key together with an id.
PreAuthTxHash
A pre authorized transaction hash.
PublicKey
The public key of the account.
SecretKey
The secret key of the account.
Signature
Ed25519 signature.
SignatureHint
Last 4 bytes of a public key.
Signer
A transaction signer key with its weight.
SignerKeyEd25519SignedPayload
Signer key for Ed25519 signed payload.
SigningKey
VerifyKey

Enums§

MuxedAccount
SignerKey
A transaction signer key.

Traits§

Ed25519Signer
Sign the provided message bytestring using Self (e.g. a cryptographic key or connection to an HSM), returning a digital signature.
Ed25519Verifier
Verify the provided message bytestring using Self (e.g. a public key)
XdrSignature

Functions§

decode_account_id
decode_muxed_account
decode_pre_auth_tx
decode_secret_seed
decode_sha256_hash
encode_account_id
encode_muxed_account
encode_pre_auth_tx
encode_secret_seed
encode_sha256_hash
hash
Compute sha256 hash of m.