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.
Modifier and Type | Class and Description |
---|---|
static class |
SignaturePayload.SignaturePayloadValue |
Modifier and Type | Field and Description |
---|---|
protected byte[] |
_signature |
Constructor and Description |
---|
SignaturePayload(java.lang.Object value) |
Modifier and Type | Method and 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
|
builder, eq, getEncodedLength, getField, isEmpty, toArray, toHex, toJson, toString, toU8a, 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
getConstructorCodec, toU8a
public boolean isSigned()
true
if the payload refers to a valid signature
public ExtrinsicEra getEra()
The ExtrinsicEra
public NonceCompact getNonce()
The Nonce
public byte[] getSignature()
The raw signature as a Uint8Array
public byte[] sign(Types.KeyringPair signerPair, RuntimeVersion version)
Sign the payload with the keypair