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

    Class SigningPublicKey

    A public key used for verifying digital signatures.

    Currently supports:

    • Schnorr public keys (32 bytes, x-only) - bare byte string in CBOR
    • ECDSA public keys (33 bytes, compressed) - discriminator 1
    • Ed25519 public keys (32 bytes) - discriminator 2
    • Sr25519 public keys (32 bytes) - discriminator 3
    • MLDSA public keys (post-quantum) - tagged CBOR delegating to MLDSAPublicKey

    Implements

    Index

    Properties

    UR_TYPE: "signing-public-key"

    Get the UR type for signing public keys.

    Methods

    • Returns the untagged CBOR encoding.

      Format (matching Rust bc-components):

      • Schnorr: h'<32-byte-x-only-public-key>' (bare byte string)
      • ECDSA: [1, h'<33-byte-compressed-public-key>']
      • Ed25519: [2, h'<32-byte-public-key>']
      • Sr25519: [3, h'<32-byte-public-key>']

      Returns Cbor

    • Creates a SigningPublicKey by decoding it from untagged CBOR.

      Format (matching Rust bc-components):

      • h'<32-byte-key>' (bare byte string) for Schnorr
      • [1, h'<33-byte-key>'] for ECDSA
      • [2, h'<32-byte-key>'] for Ed25519
      • [3, h'<32-byte-key>'] for Sr25519

      Parameters

      • cborValue: Cbor

      Returns SigningPublicKey