• Decodes a Multikey representation of a key pair, returning the public- and secret key bytes and the key type. Note that only base58-btc multibase encoding is currently supported.

    Parameters

    Returns TypedKeypair<KeyTypeString>

    The decoded publicKey and secretKey bytes plus a key type.

  • Decodes a Multikey representation of a public key/verification method, returning the publics key bytes and the key type. Note that only base58-btc multibase encoding is currently supported.

    Parameters

    Returns Pick<TypedKeypair<KeyTypeString>, "publicKey" | "type">

    The decoded publicKey bytes plus a key type.