X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fenums%2FRecipient.cs;fp=c_sharp%2Fsrc%2Forg%2Fldk%2Fenums%2FRecipient.cs;h=cbbfd7859e766f8646a68f1a8efe8ea6426f83f8;hb=810f7404202e04f70db946ced7363b64ddaf4ce4;hp=0000000000000000000000000000000000000000;hpb=fa130da4108815a8b17c3c093a91fc3d83754a0f;p=ldk-java diff --git a/c_sharp/src/org/ldk/enums/Recipient.cs b/c_sharp/src/org/ldk/enums/Recipient.cs new file mode 100644 index 00000000..cbbfd785 --- /dev/null +++ b/c_sharp/src/org/ldk/enums/Recipient.cs @@ -0,0 +1,19 @@ +namespace org { namespace ldk { namespace enums {/** + * Specifies the recipient of an invoice. + * + * This indicates to [`KeysInterface::sign_invoice`] what node secret key should be used to sign + * the invoice. + */ +public enum Recipient { + /** + * The invoice should be signed with the local node secret key. + */ + LDKRecipient_Node, + /** + * The invoice should be signed with the phantom node secret key. This secret key must be the + * same for all nodes participating in the [phantom node payment]. + * + * [phantom node payment]: PhantomKeysManager + */ + LDKRecipient_PhantomNode, +}} } }