[bisq-network/bisq] Sign single account (#4957)
sqrrm
notifications at github.com
Tue Dec 15 19:31:25 CET 2020
@sqrrm commented on this pull request.
> @@ -880,4 +880,10 @@ public boolean isSignWitnessTrade(Trade trade) {
!peerHasSignedWitness(trade) &&
tradeAmountIsSufficient(trade.getTradeAmount());
}
+
+ public String signInfoFromAccount(PaymentAccount paymentAccount) {
+ var pubKey = keyRing.getSignatureKeyPair().getPublic();
+ var witness = getMyWitness(paymentAccount.getPaymentAccountPayload());
+ return Utilities.bytesAsHexString(witness.getHash()) + "," + Utilities.bytesAsHexString(pubKey.getEncoded());
Yes, the naming was not good, changed to `getSignInfo...`
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4957#discussion_r543585992
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20201215/d78f943e/attachment.htm>
More information about the bisq-github
mailing list