Skip to main content

Store Secrets

Store secret values (SecretBlob or SecretInteger values) in the network by the cluster, secret values, permissions, and payment receipt.

tip

Open the Nillion Python Client Reference in another tab to search for available Nillion Client classes.

Store a SecretBlob

Create a SecretBlob, with one or more secret strings encoded as bytearrays, get a quote to store values, pay to store values, get a payment receipt, and finally store the SecretBlob

examples_and_tutorials/core_concept_store_and_retrieve_secrets/store_and_retrieve_blob.py
loading...

Store a SecretInteger

Create a SecretInteger, with one or more secret integers, get a quote to store values, pay to store values, get a payment receipt, and finally store the SecretInteger

examples_and_tutorials/core_concept_store_and_retrieve_secrets/store_and_retrieve_integer.py
loading...