Skip to main content

Module crypto

Module crypto 

Source

Functionsยง

encrypt_secrets
Encrypt plaintext with ChaCha20-Poly1305 using hex-encoded pubkey as symmetric key.
generate_payment_key_secret
Generate a 32-byte random hex string for payment key secret
sign_nep413
Sign a NEP-413 message using a NEAR private key (for secrets update).