public static final class SignerOuterClass.SignDescriptor extends com.google.protobuf.GeneratedMessageV3 implements SignerOuterClass.SignDescriptorOrBuilder
signrpc.SignDescriptor| Modifier and Type | Class and Description |
|---|---|
static class |
SignerOuterClass.SignDescriptor.Builder
Protobuf type
signrpc.SignDescriptor |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DOUBLE_TWEAK_FIELD_NUMBER |
static int |
INPUT_INDEX_FIELD_NUMBER |
static int |
KEY_DESC_FIELD_NUMBER |
static int |
OUTPUT_FIELD_NUMBER |
static int |
SIGHASH_FIELD_NUMBER |
static int |
SIGN_METHOD_FIELD_NUMBER |
static int |
SINGLE_TWEAK_FIELD_NUMBER |
static int |
TAP_TWEAK_FIELD_NUMBER |
static int |
WITNESS_SCRIPT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static SignerOuterClass.SignDescriptor |
getDefaultInstance() |
SignerOuterClass.SignDescriptor |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.ByteString |
getDoubleTweak()
A private key that will be used in combination with its corresponding
private key to derive the private key that is to be used to sign the target
input.
|
int |
getInputIndex()
The target input within the transaction that should be signed.
|
SignerOuterClass.KeyDescriptor |
getKeyDesc()
A descriptor that precisely describes *which* key to use for signing.
|
SignerOuterClass.KeyDescriptorOrBuilder |
getKeyDescOrBuilder()
A descriptor that precisely describes *which* key to use for signing.
|
SignerOuterClass.TxOut |
getOutput()
A description of the output being spent.
|
SignerOuterClass.TxOutOrBuilder |
getOutputOrBuilder()
A description of the output being spent.
|
com.google.protobuf.Parser<SignerOuterClass.SignDescriptor> |
getParserForType() |
int |
getSerializedSize() |
int |
getSighash()
The target sighash type that should be used when generating the final
sighash, and signature.
|
SignerOuterClass.SignMethod |
getSignMethod()
The sign method specifies how the input should be signed.
|
int |
getSignMethodValue()
The sign method specifies how the input should be signed.
|
com.google.protobuf.ByteString |
getSingleTweak()
A scalar value that will be added to the private key corresponding to the
above public key to obtain the private key to be used to sign this input.
|
com.google.protobuf.ByteString |
getTapTweak()
The 32 byte input to the taproot tweak derivation that is used to derive
the output key from an internal key: outputKey = internalKey +
tagged_hash("tapTweak", internalKey || tapTweak).
|
com.google.protobuf.ByteString |
getWitnessScript()
The full script required to properly redeem the output.
|
int |
hashCode() |
boolean |
hasKeyDesc()
A descriptor that precisely describes *which* key to use for signing.
|
boolean |
hasOutput()
A description of the output being spent.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SignerOuterClass.SignDescriptor.Builder |
newBuilder() |
static SignerOuterClass.SignDescriptor.Builder |
newBuilder(SignerOuterClass.SignDescriptor prototype) |
SignerOuterClass.SignDescriptor.Builder |
newBuilderForType() |
protected SignerOuterClass.SignDescriptor.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SignerOuterClass.SignDescriptor |
parseDelimitedFrom(java.io.InputStream input) |
static SignerOuterClass.SignDescriptor |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SignerOuterClass.SignDescriptor |
parseFrom(byte[] data) |
static SignerOuterClass.SignDescriptor |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SignerOuterClass.SignDescriptor |
parseFrom(java.nio.ByteBuffer data) |
static SignerOuterClass.SignDescriptor |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SignerOuterClass.SignDescriptor |
parseFrom(com.google.protobuf.ByteString data) |
static SignerOuterClass.SignDescriptor |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SignerOuterClass.SignDescriptor |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SignerOuterClass.SignDescriptor |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SignerOuterClass.SignDescriptor |
parseFrom(java.io.InputStream input) |
static SignerOuterClass.SignDescriptor |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SignerOuterClass.SignDescriptor> |
parser() |
SignerOuterClass.SignDescriptor.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int KEY_DESC_FIELD_NUMBER
public static final int SINGLE_TWEAK_FIELD_NUMBER
public static final int DOUBLE_TWEAK_FIELD_NUMBER
public static final int TAP_TWEAK_FIELD_NUMBER
public static final int WITNESS_SCRIPT_FIELD_NUMBER
public static final int OUTPUT_FIELD_NUMBER
public static final int SIGHASH_FIELD_NUMBER
public static final int INPUT_INDEX_FIELD_NUMBER
public static final int SIGN_METHOD_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasKeyDesc()
A descriptor that precisely describes *which* key to use for signing. This may provide the raw public key directly, or require the Signer to re-derive the key according to the populated derivation path. Note that if the key descriptor was obtained through walletrpc.DeriveKey, then the key locator MUST always be provided, since the derived keys are not persisted unlike with DeriveNextKey.
.signrpc.KeyDescriptor key_desc = 1;hasKeyDesc in interface SignerOuterClass.SignDescriptorOrBuilderpublic SignerOuterClass.KeyDescriptor getKeyDesc()
A descriptor that precisely describes *which* key to use for signing. This may provide the raw public key directly, or require the Signer to re-derive the key according to the populated derivation path. Note that if the key descriptor was obtained through walletrpc.DeriveKey, then the key locator MUST always be provided, since the derived keys are not persisted unlike with DeriveNextKey.
.signrpc.KeyDescriptor key_desc = 1;getKeyDesc in interface SignerOuterClass.SignDescriptorOrBuilderpublic SignerOuterClass.KeyDescriptorOrBuilder getKeyDescOrBuilder()
A descriptor that precisely describes *which* key to use for signing. This may provide the raw public key directly, or require the Signer to re-derive the key according to the populated derivation path. Note that if the key descriptor was obtained through walletrpc.DeriveKey, then the key locator MUST always be provided, since the derived keys are not persisted unlike with DeriveNextKey.
.signrpc.KeyDescriptor key_desc = 1;getKeyDescOrBuilder in interface SignerOuterClass.SignDescriptorOrBuilderpublic com.google.protobuf.ByteString getSingleTweak()
A scalar value that will be added to the private key corresponding to the above public key to obtain the private key to be used to sign this input. This value is typically derived via the following computation: derivedKey = privkey + sha256(perCommitmentPoint || pubKey) mod N
bytes single_tweak = 2;getSingleTweak in interface SignerOuterClass.SignDescriptorOrBuilderpublic com.google.protobuf.ByteString getDoubleTweak()
A private key that will be used in combination with its corresponding private key to derive the private key that is to be used to sign the target input. Within the Lightning protocol, this value is typically the commitment secret from a previously revoked commitment transaction. This value is in combination with two hash values, and the original private key to derive the private key to be used when signing. k = (privKey*sha256(pubKey || tweakPub) + tweakPriv*sha256(tweakPub || pubKey)) mod N
bytes double_tweak = 3;getDoubleTweak in interface SignerOuterClass.SignDescriptorOrBuilderpublic com.google.protobuf.ByteString getTapTweak()
The 32 byte input to the taproot tweak derivation that is used to derive
the output key from an internal key: outputKey = internalKey +
tagged_hash("tapTweak", internalKey || tapTweak).
When doing a BIP 86 spend, this field can be an empty byte slice.
When doing a normal key path spend, with the output key committing to an
actual script root, then this field should be: the tapscript root hash.
bytes tap_tweak = 10;getTapTweak in interface SignerOuterClass.SignDescriptorOrBuilderpublic com.google.protobuf.ByteString getWitnessScript()
The full script required to properly redeem the output. This field will only be populated if a p2tr, p2wsh or a p2sh output is being signed. If a taproot script path spend is being attempted, then this should be the raw leaf script.
bytes witness_script = 4;getWitnessScript in interface SignerOuterClass.SignDescriptorOrBuilderpublic boolean hasOutput()
A description of the output being spent. The value and script MUST be provided.
.signrpc.TxOut output = 5;hasOutput in interface SignerOuterClass.SignDescriptorOrBuilderpublic SignerOuterClass.TxOut getOutput()
A description of the output being spent. The value and script MUST be provided.
.signrpc.TxOut output = 5;getOutput in interface SignerOuterClass.SignDescriptorOrBuilderpublic SignerOuterClass.TxOutOrBuilder getOutputOrBuilder()
A description of the output being spent. The value and script MUST be provided.
.signrpc.TxOut output = 5;getOutputOrBuilder in interface SignerOuterClass.SignDescriptorOrBuilderpublic int getSighash()
The target sighash type that should be used when generating the final sighash, and signature.
uint32 sighash = 7;getSighash in interface SignerOuterClass.SignDescriptorOrBuilderpublic int getInputIndex()
The target input within the transaction that should be signed.
int32 input_index = 8;getInputIndex in interface SignerOuterClass.SignDescriptorOrBuilderpublic int getSignMethodValue()
The sign method specifies how the input should be signed. Depending on the method, either the tap_tweak, witness_script or both need to be specified. Defaults to SegWit v0 signing to be backward compatible with older RPC clients.
.signrpc.SignMethod sign_method = 9;getSignMethodValue in interface SignerOuterClass.SignDescriptorOrBuilderpublic SignerOuterClass.SignMethod getSignMethod()
The sign method specifies how the input should be signed. Depending on the method, either the tap_tweak, witness_script or both need to be specified. Defaults to SegWit v0 signing to be backward compatible with older RPC clients.
.signrpc.SignMethod sign_method = 9;getSignMethod in interface SignerOuterClass.SignDescriptorOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SignerOuterClass.SignDescriptor parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SignerOuterClass.SignDescriptor parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SignerOuterClass.SignDescriptor parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SignerOuterClass.SignDescriptor parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SignerOuterClass.SignDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SignerOuterClass.SignDescriptor parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SignerOuterClass.SignDescriptor parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SignerOuterClass.SignDescriptor parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static SignerOuterClass.SignDescriptor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SignerOuterClass.SignDescriptor parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static SignerOuterClass.SignDescriptor parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SignerOuterClass.SignDescriptor parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic SignerOuterClass.SignDescriptor.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SignerOuterClass.SignDescriptor.Builder newBuilder()
public static SignerOuterClass.SignDescriptor.Builder newBuilder(SignerOuterClass.SignDescriptor prototype)
public SignerOuterClass.SignDescriptor.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SignerOuterClass.SignDescriptor.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SignerOuterClass.SignDescriptor getDefaultInstance()
public static com.google.protobuf.Parser<SignerOuterClass.SignDescriptor> parser()
public com.google.protobuf.Parser<SignerOuterClass.SignDescriptor> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SignerOuterClass.SignDescriptor getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder