Store a Private Key
The first step in using SecretSigner is storing a private key in Nillion. During storage:
- The private key is automatically split into shares and distributed across nilVM nodes
- Permissions specify which Nillion users can use this key with SecretSigner
- Each stored key receives a unique identifier (the store id) for future reference
When storing the key, compute access is granted to specific Nillion users, allowing them to use the key with SecretSigner's signing program.
Usage
- Python Client
- TypeScript Client
Python Client
Install Nillion Python Client
pip install nillion-client
Python Client: Store a Private Key
- storePrivateKey.py
- nillion_config.py
- nillion_constants.py
- .env
nilvm/secretsigner-python/storePrivateKey.py
loading...
nilvm/secretsigner-python/nillion_config.py
loading...
nilvm/secretsigner-python/nillion_signature_constants.py
loading...
nilvm/secretsigner-python/.env.example
loading...
TypeScript Client
Install Nillion TypeScript Client
npm i @nillion/client-wasm @nillion/client-vms
TypeScript Client: Store a Private Key
- storePrivateKey.js
- nillionNetworkConfig.js
- nillionSignatureConstants.js
- .env
nilvm/secretsigner-nodejs/storePrivateKey.js
loading...
nilvm/secretsigner-nodejs/nillionNetworkConfig.js
loading...
nilvm/secretsigner-nodejs/nillionSignatureConstants.js
loading...
nilvm/secretsigner-nodejs/.env.example
loading...