Blockchain Commons Components TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Type Alias SigningOptions

    SigningOptions:
        | { type: "Schnorr"; rng: RandomNumberGenerator }
        | { type: "Ssh"; namespace: string; hashAlg: "sha256" | "sha512" }

    Options for configuring signature creation.

    Different signature schemes may require specific options:

    • Schnorr: Optionally accepts a custom random number generator
    • Ssh: Requires a namespace and hash algorithm

    Other signature types like ECDSA, Ed25519, Sr25519, and ML-DSA don't require options.

    Type Declaration

    • { type: "Schnorr"; rng: RandomNumberGenerator }
      • type: "Schnorr"
      • rng: RandomNumberGenerator

        Custom random number generator for signature creation

    • { type: "Ssh"; namespace: string; hashAlg: "sha256" | "sha512" }
      • type: "Ssh"
      • namespace: string

        The namespace used for SSH signatures

      • hashAlg: "sha256" | "sha512"

        The hash algorithm used for SSH signatures