Ledger Application Code in C++

Ledger Application

Source Code Explained

All Ledger transports must be sent with a byte prefix that defined what the payload type is. This is used to deserialize and display on the ledger device.

Byte_PrefixEnumDescription
0x01SIGN_UTF8Sign UTF8 message for Mainnet
0x02SIGN_TRANSACTIONSign Transaction for Mainnet
0x03SIGN_DIGESTSign the exact bytes provided in payload. Must be exactly 32 bytes like a sha256 hash
0x0BSIGN_UTF8_TESTNETSign UTF8 message for Testnet
0x0CSIGN_TRANSACTION_TESTNETSign Transaction for Testnet

Please see for more information how Partisia Blockchain works: