Experimental
Run this command at the base of the repo:
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative --experimental_allow_proto3_optional gen/signer.proto
When you run the signer for the first time you will need to add your private key to the libsecret service. This should be a BIP-39 seedphrase.
# NOTE: when you run this command you will get a prompt for password. This is where you paste the seedphrase.
secret-tool store --label="nutvault-seed" label nutvault-seed
To run the signer do:
go run ./...
The signer communicates by default using a linux abstract socket. This allows the signer to run in a whole different
isolated user.
if you want to expose the signer to the web so it can run in the over the network, you just need to the NETWORK
enviroment variable to "true".
The Signer secures communication with the mint using mTLS. This will require for you to create 3 files in a directory
called tls
.
The files should be called:
- server-cert.pem
- server-key.pem
- ca-cert.pem