Class SignaturePayload

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,​Codec>, Codec

    public class SignaturePayload
    extends Struct
    A signing payload for an org.polkadot.type.extrinsics. For the final encoding, it is variable length based on the conetnts included 8 bytes The Transaction Index/Nonce as provided in the transaction itself. 2+ bytes The Function Descriptor as provided in the transaction itself. 2 bytes The Transaction Era as provided in the transaction itself. 32 bytes The hash of the authoring block implied by the Transaction Era and the current block.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SignaturePayload.SignaturePayloadValue  
      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected byte[] _signature  
    • Constructor Summary

      Constructors 
      Constructor Description
      SignaturePayload​(java.lang.Object value)  
    • Method Summary

      Modifier and Type Method Description
      Hash getBlockHash()
      The block Hash the signature applies to (mortal/immortal)
      ExtrinsicEra getEra()
      The ExtrinsicEra
      Method getMethod()
      The Method contained in the payload
      NonceCompact getNonce()
      The Nonce
      byte[] getSignature()
      The raw signature as a `Uint8Array`
      boolean isSigned()
      `true` if the payload refers to a valid signature
      byte[] sign​(Types.KeyringPair signerPair, RuntimeVersion version)
      Sign the payload with the keypair
      • Methods inherited from class java.util.LinkedHashMap

        clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
      • Methods inherited from class java.util.HashMap

        clone, compute, computeIfAbsent, computeIfPresent, containsKey, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.polkadot.types.Codec

        toU8a
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
    • Field Detail

      • _signature

        protected byte[] _signature
    • Constructor Detail

      • SignaturePayload

        public SignaturePayload​(java.lang.Object value)
    • Method Detail

      • isSigned

        public boolean isSigned()
        `true` if the payload refers to a valid signature
      • getBlockHash

        public Hash getBlockHash()
        The block Hash the signature applies to (mortal/immortal)
      • getMethod

        public Method getMethod()
        The Method contained in the payload
      • getSignature

        public byte[] getSignature()
        The raw signature as a `Uint8Array`