Documentation ¶
Overview ¶
Constants package contains constants vital to the Bitmessage protocol and its functioning.
Index ¶
Constants ¶
View Source
const ( // The first 4 byte value of every message exchanged wiht a Bitmessage node. // DO NOT CHANGE unless you want to create your own alternative Bitmessage // network. MessageMagic uint32 = 0xE9BEB4D9 // Curve used for encryption/decryption/signing. DO NOT CHANGE unless you // want to create your own alternative Bitcoin network. Changing this WILL // also break code that depends on uncompressed key length being 64 bytes. Curve = elliptic.Secp256k1 // POW Constants: // // If changed, these values will cause particularly unexpected behavior: You // won't be able to either send or receive messages because the proof of // work you do (or demand) won't match that done or demanded by others. // Don't change them! // // The amount of work that should be performed (and demanded) per byte of // the payload. POWDefaultNonceTrialsPerByte = 1000 // To make sending short messages a little more difficult, this value is // added to the payload length for use in calculating the proof of work // target. POWDefaultExtraBytes = 1000 // ObjectTTLRandRange contains the amount of time that should be randomly // added to or subtracted from TTLBase to get the exact duration that the // object is valid for. ObjectTTLRandRange = 5 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.