Skip to main content

Crate near_crypto

Crate near_crypto 

Source

Modules§

hash_domain
key_conversion
vrf

Structs§

ED25519PublicKey
ED25519SecretKey
EmptySigner
InMemorySigner
Signer that keeps secret key in memory.
KeyFile
MlDsa65PublicKey
ML-DSA-65 public key (1952 bytes).
MlDsa65PublicKeyHandle
On-trie identifier of an ML-DSA-65 access key - and, in the future, the basis for ML-DSA-65 implicit-account ids. Stored as the SHA3-256 digest of (domain-tag || raw pubkey) because the full 1952-byte pubkey would be prohibitive to keep in state. Cannot sign or verify; only appears as a lookup key and in view-API responses.
MlDsa65Signature
FIPS 204 ML-DSA-65 signature (3309 bytes).
Secp256K1PublicKey
Secp256K1Signature

Enums§

KeyType
ParseKeyError
ParseKeyTypeError
ParseSignatureError
PublicKey
Public key container supporting different curves.
PublicKeyHandle
How an access-key entry is referred to in the trie.
SecretKey
Secret key container supporting different curves.
Signature
Signature container supporting different curves.
Signer
Enum for Signer, that can sign with some subset of supported curves.

Constants§

ML_DSA_65_HASH_LENGTH
SHA3-256 output length used as the on-trie identifier for an ML-DSA-65 access key. The same digest is expected to be reused as the account-id payload for ML-DSA-65 implicit accounts when that feature lands; update this comment then.
ML_DSA_65_PUBLIC_KEY_LENGTH
ML-DSA-65 public key length in bytes.
ML_DSA_65_SIGNATURE_LENGTH
ML-DSA-65 signature length in bytes.