1

Do I need to convert the 132 characters to 65 somehow? No, the line sig = exports.toBuffer(sig) in function fromRpcSig does this for you. However, in order for it to return a buffer of 65 bytes, toBuffer needs to receive an input string of 130 hexadecimal characters, because each character (0-9; A-F) represents 1/2 byte (4 bits). So your 132-character ...


1

Serialization means that the message is packed in a byte stream, which properties (like encoding, byte ordering, etc.) are defined by a common protocol. This way you can ensure everybody can pack (serialize) the object into a byte-stream and send it to any participant who knows the protocol, whereupon the participant is able to properly unpack (deserialize) ...


Only top voted, non community-wiki answers of a minimum length are eligible