Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 901 Bytes

File metadata and controls

39 lines (29 loc) · 901 Bytes

Covenants Example

Experimental build using bitcoinkernel-covenants with OP_CAT, OP_CSFS and OP_CTV enabled Not intended for production use. Use at your own risk.

Run Tests

cargo test

Build Docker Image for Nitro Enclave

docker build -f Dockerfile.example -t covenants-example .

Build and Run Nitro Enclave

# Build the enclave image
nitro-cli build-enclave \
  --docker-uri covenants-example \
  --output-file covenants_example.eif

# Run the enclave with specified CPU, memory, and CID
nitro-cli run-enclave \
  --cpu-count 2 \
  --memory 512 \
  --enclave-cid 16 \
  --eif-path covenants_example.eif \
  --debug-mode

# Inspect running enclaves
nitro-cli describe-enclaves

# Connect to the enclave console (replace <id> with the Enclave ID)
nitro-cli console --enclave-id <id>