RepositoryParity.io
  • Preparing search index...
  • The search index is not available
txwrapper-core
  • txwrapper-core
  • txwrapper-core/src/core/construct/createSigningPayloadToU8a
  • createSigningPayloadToU8a

Function createSigningPayloadToU8a

  • createSigningPayloadToU8a(unsigned, options): Uint8Array
  • Create a signing payload with the method prefix removed. If the length of the payload is above 256, then it will be hashed using blake2_256.

    Ref: https://github.com/paritytech/substrate/blob/master/primitives/runtime/src/generic/unchecked_extrinsic.rs#L171-L220

    This is specifically useful for external signers who will not be using ExtrinsicPayload.sign(<KeyPair>), but instead their own method.

    Parameters

    • unsigned: UnsignedTransaction

      UnsignedTransaction to be passed in

    • options: Options

      Registry used for constructing the payload.

    Returns Uint8Array

    • Defined in txwrapper-core/src/core/construct/createSigningPayloadToU8a.ts:18

Settings

Member Visibility
RepositoryParity.io
txwrapper-core
  • Loading...