I'm converting IPFS multi hash to hex, and after throwing away its prefix I want to attach that hash to a stellar transaction (something like here). I build it this way:
let transaction = new StellarSdk.TransactionBuilder(account)
.addOperation(StellarSdk.Operation.payment({
destination: supply,
asset: StellarSdk.Asset.native(),
amount: MIN,
}))
.addMemo(StellarSdk.Memo.hash(hash))
.build();
transaction.sign(pair);
At runtime let's say the hash value is:
8c339e15bd89e7f8c7d6c754b8016a202bba12a8cdb4aabe39c6c9e30507a8f3
But after consensus has been reached, I retrieve the same transaction and it shows a different value for the memo hash:
memo: "jDOeFb2J5/jH1sdUuAFqICu6EqjNtKq+OcbJ4wUHqPM="
memo_type: "hash"
Why?