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

    Class Sr25519PrivateKey

    Sr25519PrivateKey - Private key for Schnorr signatures over Ristretto25519.

    This is the signature scheme used by Polkadot/Substrate.

    Index

    Methods

    • Sign a message using a custom context.

      Note: The @scure/sr25519 library uses a hardcoded "substrate" context. Custom context is accepted for API compatibility but only "substrate" context will produce signatures verifiable by this library.

      Parameters

      • message: Uint8Array

        The message to sign

      • _context: Uint8Array

        The signing context (only "substrate" is supported)

      Returns Uint8Array

      64-byte signature