Get desktop application:
View/edit binary Protocol Buffers messages
Signer is a service that gives access to the signing functionality of the daemon's wallet.
ComputeInputScript generates a complete InputIndex for the passed transaction with the signature as defined within the passed SignDescriptor. This method should be capable of generating the proper input script for both regular p2wkh output and p2wkh outputs nested within a regular p2sh output. Note that when using this method to sign inputs belonging to the wallet, the only items of the SignDescriptor that need to be populated are pkScript in the TxOut field, the value in that same field, and finally the input index.
The set of fully valid input scripts requested.
SignMessage signs a message with the key specified in the key locator. The returned signature is fixed-size LN wire format encoded. The main difference to SignMessage in the main RPC is that a specific key is used to sign the message instead of the node identity private key.
The message to be signed.
The key locator that identifies which key to use for signing.
Double-SHA256 hash instead of just the default single round.
Use the compact (pubkey recoverable) format instead of the raw lnwire format.
The signature for the given message in the fixed-size LN wire format.
SignOutputRaw is a method that can be used to generated a signature for a set of inputs/outputs to a transaction. Each request specifies details concerning how the outputs should be signed, which keys they should be signed with, and also any optional tweaks. The return value is a fixed 64-byte signature (the same format as we use on the wire in Lightning). If we are unable to sign using the specified keys, then an error will be returned.
A set of signatures realized in a fixed 64-byte format ordered in ascending input order.
VerifyMessage verifies a signature over a message using the public key provided. The signature must be fixed-size LN wire format encoded. The main difference to VerifyMessage in the main RPC is that the public key used to sign the message does not have to be a node known to the network.
The message over which the signature is to be verified.
The fixed-size LN wire encoded signature to be verified over the given message.
The public key the signature has to be valid for.
Whether the signature was valid over the given message.
Used in:
The serializes witness stack for the specified input.
The optional sig script for the specified witness that will only be set if the input specified is a nested p2sh witness program.
Used as response type in: walletrpc.WalletKit.DeriveKey, walletrpc.WalletKit.DeriveNextKey
Used as field type in: ,
The raw bytes of the public key in the key pair being identified. Either this or the KeyLocator must be specified.
The key locator that identifies which private key to use for signing. Either this or the raw bytes of the target public key must be specified.
Used as request type in: walletrpc.WalletKit.DeriveKey
Used as field type in: , ,
The family of key being identified.
The precise index of the key being identified.
Used in:
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.
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
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
The full script required to properly redeem the output. This field will only be populated if a p2wsh or a p2sh output is being signed.
A description of the output being spent. The value and script MUST be provided.
The target sighash type that should be used when generating the final sighash, and signature.
The target input within the transaction that should be signed.
Used as request type in: Signer.ComputeInputScript, Signer.SignOutputRaw
The raw bytes of the transaction to be signed.
A set of sign descriptors, for each input to be signed.
Used in: ,
The value of the output being spent.
The script of the output being spent.