Closed vipertechofficial closed 3 years ago
Just decode with base58. All attachments are shown as base58 format to avoid invisible char showing.
Here is the sample code
import base58 from 'base-58'
import converters from '@/js-v-sdk/src/utils/converters'
let bytes = base58.decode(attachment)
value = converters.byteArrayToString(bytes)
Is it possible to implement a methods to get the clear text of a transactions attachment, I think it uses the public key of the receiver but how could we decrypt this?