Skip to main content

Commitments

decrypt-cc20p1305

ciphertext string nonce string aad string mac string public-key string secret-key string  string

Perform decryption of CIPHERTEXT using the CHACHA20-POLY1305 Authenticated Encryption with Associated Data (AEAD) construction described in IETF RFC 7539. CIPHERTEXT is an unpadded base64url string. NONCE is a 12-byte base64 string. AAD is base64 additional authentication data of any length. MAC is the "detached" base64 tag value for validating POLY1305 authentication. PUBLIC-KEY and SECRET-KEY are base-16 Curve25519 values to form the DH symmetric key.Result is unpadded base64URL.

(decrypt-cc20p1305 ciphertext nonce aad mac pubkey privkey)
(decrypt-cc20p1305 ciphertext nonce aad mac pubkey privkey)

validate-keypair

public string secret string  bool

Enforce that the Curve25519 keypair of (PUBLIC,SECRET) match. Key values are base-16 strings of length 32.

(validate-keypair pubkey privkey)
(validate-keypair pubkey privkey)

Receive important developer updates