@substrate-system/multikey
    Preparing search index...

    Function decode

    • Decode a Multikey multibase string (ed25519-pub) back to raw key bytes. Returns an object where multicodec is the multicodec numeric code -- 237 for Ed255519, 4613 for RSA.

      Parameters

      • multibaseStr: string

      Returns { key: Uint8Array<ArrayBuffer>; multicodec: number; type: KeyType | "unknown" }

    Index

    Methods

    Methods

    • Decode a given string to a CryptoKey instance.

      Parameters

      • multibaseStr: string

        A multikey encoded public key

      Returns Promise<CryptoKey>

      Public key as a CryptoKey