Skip to content

Instantly share code, notes, and snippets.

@apemon
Created December 31, 2018 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apemon/7801544f0885d9c961999a398aa61784 to your computer and use it in GitHub Desktop.
Save apemon/7801544f0885d9c961999a398aa61784 to your computer and use it in GitHub Desktop.
// generate new keypair for transfer cash
val (_, cashKeys) = Cash.generateSpend(serviceHub, builder, amount, ourIdentityAndCert, creditor)
// key to sign for transfer cash, notice that you will need another key for confidentially
val myKeysToSign = (cashKeys.toSet() + ourIdentity.owningKey).toList()
// send confidential to counterparty
subFlow(IdentitySyncFlow.Send(counterPartySession, ptx.tx))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment