MCPcopy Create free account
hub / github.com/dfinity/examples / get_schnorr_public_key

Function get_schnorr_public_key

rust/basic_bitcoin/src/schnorr.rs:22–49  ·  view source on GitHub ↗

Retrieves the Schnorr public key for the given derivation path from the Schnorr API. This function checks the local in-memory cache first. If no cached key exists, it queries the Schnorr API for the public key at the given derivation path and stores the result in the cache.

(
    ctx: &BitcoinContext,
    derivation_path: Vec<Vec<u8>>,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls

no outgoing calls

Tested by

no test coverage detected