Skip to content

Commit

Permalink
fix txoututils wrapper call to new libmobilecoin signature
Browse files Browse the repository at this point in the history
  • Loading branch information
the-real-adammork committed Aug 16, 2023
1 parent edddd8c commit b160406
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Sources/Common/Ledger/TxOutUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,14 @@ enum TxOutUtils {
txOutPublicKey: RistrettoPublic,
accountKey: AccountKey
) -> Data66? {
McAccountKey.withUnsafePointer(
viewPrivateKey: accountKey.viewPrivateKey,
spendPrivateKey: accountKey.spendPrivateKey,
fogInfo: accountKey.fogInfo
) { accountKeyPtr in
accountKey.viewPrivateKey.asMcBuffer { viewPrivateKeyPtr in
encryptedMemo.asMcBuffer { eMemoPtr in
txOutPublicKey.asMcBuffer { publicKeyPtr in
switch Data66.make(withMcMutableBuffer: { bufferPtr, errorPtr in
mc_memo_decrypt_e_memo_payload(
eMemoPtr,
publicKeyPtr,
accountKeyPtr,
viewPrivateKeyPtr,
bufferPtr,
&errorPtr)
}) {
Expand Down

0 comments on commit b160406

Please sign in to comment.