Function didSignatureToChain

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

    Parameters

    • input: {
          algorithm: string;
          signature: Uint8Array;
      }

      Signature and algorithm.

      • algorithm: string

        Descriptor of the signature algorithm used by the signer.

      • signature: Uint8Array

        The signature generated by the signer.

    Returns EncodedSignature

    Data restructured to allow SCALE encoding by polkadot api.