Function didSignatureToChain

  • Compiles an enum-type key-value pair representation of a signature created with a full DID verification method. Required for creating full DID signed extrinsics.

    Returns

    Data restructured to allow SCALE encoding by polkadot api.

    Parameters

    • key: DidVerificationKey

      Object describing data associated with a public key.

    • signature: Uint8Array

      Object containing a signature generated with a full DID associated public key.

    Returns EncodedSignature