Changeset View
Changeset View
Standalone View
Standalone View
cashtab/src/components/Common/Ticker.js
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | opReturn: { | ||||
opPushDataOne: '4c', | opPushDataOne: '4c', | ||||
appPrefixesHex: { | appPrefixesHex: { | ||||
eToken: '534c5000', | eToken: '534c5000', | ||||
cashtab: '00746162', | cashtab: '00746162', | ||||
cashtabEncrypted: '65746162', | cashtabEncrypted: '65746162', | ||||
airdrop: '64726f70', | airdrop: '64726f70', | ||||
aliasRegistration: '2e786563', | aliasRegistration: '2e786563', | ||||
}, | }, | ||||
tokenGenesisMaxByteCount: 180, | |||||
/* encryptedMsgByteLimit context: | /* encryptedMsgByteLimit context: | ||||
As per `convertToEncryptStruct()` in cashMethods.js which breaks down the ecies-lite library's encryption logic, the encrypted OP_RETURN message that follows pushdata1 (4c) and pushdata (d1) prefixes is 209 bytes, based on a 127 byte message supplied via the frontend. | As per `convertToEncryptStruct()` in cashMethods.js which breaks down the ecies-lite library's encryption logic, the encrypted OP_RETURN message that follows pushdata1 (4c) and pushdata (d1) prefixes is 209 bytes, based on a 127 byte message supplied via the frontend. | ||||
These 209 bytes can be broken down into the following: | These 209 bytes can be broken down into the following: | ||||
- ivbufParam: 16 bytes | - ivbufParam: 16 bytes | ||||
- publicKey: 33 bytes | - publicKey: 33 bytes | ||||
- ctbufParam: 128 bytes | - ctbufParam: 128 bytes | ||||
- macParam: 32 bytes | - macParam: 32 bytes | ||||
These byte sizes can be verified via debug logs in `convertToEncryptStruct`. | These byte sizes can be verified via debug logs in `convertToEncryptStruct`. | ||||
▲ Show 20 Lines • Show All 1,628 Lines • Show Last 20 Lines |