MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / constructor

Method constructor

lib.esm/crypto/signing-key.js:18–21  ·  view source on GitHub ↗

* Creates a new **SigningKey** for %%privateKey%%.

(privateKey)

Source from the content-addressed store, hash-verified

16 * Creates a new **SigningKey** for %%privateKey%%.
17 */
18 constructor(privateKey) {
19 assertArgument(dataLength(privateKey) === 32, "invalid private key", "privateKey", "[REDACTED]");
20 this.#privateKey = hexlify(privateKey);
21 }
22 /**
23 * The private key.
24 */

Callers

nothing calls this directly

Calls 3

assertArgumentFunction · 0.90
dataLengthFunction · 0.90
hexlifyFunction · 0.90

Tested by

no test coverage detected