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

Function sign_with_schnorr

rust/basic_bitcoin/src/schnorr.rs:55–79  ·  view source on GitHub ↗

Returns the Schnorr signature for `message`. The message will be signed with the private key derived from `key_name`, `derivation_path`, and the optional [BIP341](https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki) `merkle_root_hash`.

(
    key_name: String,
    derivation_path: Vec<Vec<u8>>,
    merkle_root_hash: Option<Vec<u8>>,
    message: Vec<u8>,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

signMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected