public class ExtrinsicSignature extends Struct implements Types.IExtrinsicSignature
A container for the Signature
associated with a specific org.polkadot.type.extrinsics
Modifier and Type | Field and Description |
---|---|
static int |
BIT_SIGNED |
static int |
BIT_UNSIGNED |
static int |
BIT_VERSION |
static byte[] |
IMMORTAL_ERA |
Constructor and Description |
---|
ExtrinsicSignature(java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
int |
getEncodedLength()
The length of the value when encoded as a Uint8Array
|
ExtrinsicEra |
getEra()
The ExtrinsicEra (mortal or immortal) this signature applies to
|
NonceCompact |
getNonce()
The
Nonce for the signature |
Signature |
getSignature()
The actuall
Signature hash |
Address |
getSigner()
The
Address that signed |
boolean |
isSigned() |
byte[] |
toU8a(boolean isBare)
Encodes the value as a Uint8Array as per the parity-codec specifications
|
int |
version()
The encoded version for the signature
|
builder, eq, getField, isEmpty, toArray, toHex, toJson, toString, with
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
finalize, getClass, notify, notifyAll, wait, wait, wait
public static final byte[] IMMORTAL_ERA
public static final int BIT_SIGNED
public static final int BIT_UNSIGNED
public static final int BIT_VERSION
public int getEncodedLength()
Struct
The length of the value when encoded as a Uint8Array
getEncodedLength
in interface Codec
getEncodedLength
in class Struct
public boolean isSigned()
isSigned
in interface Types.IExtrinsicSignature
public ExtrinsicEra getEra()
The ExtrinsicEra (mortal or immortal) this signature applies to
public NonceCompact getNonce()
The Nonce
for the signature
public int version()
The encoded version for the signature
public byte[] toU8a(boolean isBare)
Struct
Encodes the value as a Uint8Array as per the parity-codec specifications