Package org.polkadot.types.type
Class ExtrinsicSignature
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<java.lang.String,Codec>
-
- org.polkadot.types.codec.Struct
-
- org.polkadot.types.type.ExtrinsicSignature
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.String,Codec>,Codec,Types.IExtrinsicSignature
public class ExtrinsicSignature extends Struct implements Types.IExtrinsicSignature
A container for theSignatureassociated with a specificorg.polkadot.type.extrinsics- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intBIT_SIGNEDstatic intBIT_UNSIGNEDstatic intBIT_VERSIONstatic byte[]IMMORTAL_ERA
-
Constructor Summary
Constructors Constructor Description ExtrinsicSignature(java.lang.Object value)
-
Method Summary
Modifier and Type Method Description intgetEncodedLength()The length of the value when encoded as a Uint8ArrayExtrinsicEragetEra()The ExtrinsicEra (mortal or immortal) this signature applies toNonceCompactgetNonce()TheNoncefor the signatureSignaturegetSignature()The actuallSignaturehashAddressgetSigner()TheAddressthat signedbooleanisSigned()byte[]toU8a(boolean isBare)Encodes the value as a Uint8Array as per the parity-codec specificationsintversion()The encoded version for the signature-
Methods inherited from class org.polkadot.types.codec.Struct
builder, eq, getField, isEmpty, toArray, toHex, toJson, toString, with
-
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
-
-
-
-
Field Detail
-
IMMORTAL_ERA
public static final byte[] IMMORTAL_ERA
-
BIT_SIGNED
public static final int BIT_SIGNED
- See Also:
- Constant Field Values
-
BIT_UNSIGNED
public static final int BIT_UNSIGNED
- See Also:
- Constant Field Values
-
BIT_VERSION
public static final int BIT_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEncodedLength
public int getEncodedLength()
Description copied from class:StructThe length of the value when encoded as a Uint8Array- Specified by:
getEncodedLengthin interfaceCodec- Overrides:
getEncodedLengthin classStruct
-
isSigned
public boolean isSigned()
- Specified by:
isSignedin interfaceTypes.IExtrinsicSignature
-
getEra
public ExtrinsicEra getEra()
The ExtrinsicEra (mortal or immortal) this signature applies to
-
getNonce
public NonceCompact getNonce()
TheNoncefor the signature
-
version
public int version()
The encoded version for the signature
-
toU8a
public byte[] toU8a(boolean isBare)
Description copied from class:StructEncodes the value as a Uint8Array as per the parity-codec specifications
-
-