Bitcoin ABC 0.26.3
P2P Digital Currency
|
In future if many more values are added, it should be considered to expand the element size to 64 bytes (with padding the spare space as needed) so the key can be long. More...
Public Types | |
using | KeyType = ScriptCacheKey |
Public Member Functions | |
ScriptCacheElement ()=default | |
ScriptCacheElement (const KeyType &keyIn, int nSigChecksIn) | |
const KeyType & | getKey () const |
Public Attributes | |
KeyType | key |
int | nSigChecks |
In future if many more values are added, it should be considered to expand the element size to 64 bytes (with padding the spare space as needed) so the key can be long.
Shortening the key too much risks opening ourselves up to consensus-failing collisions, however it should be noted that our cache nonce is private and unique, so collisions would affect only one node and attackers have no way of offline-preparing a collision attack even on short keys.
Definition at line 25 of file scriptcache.cpp.
Definition at line 26 of file scriptcache.cpp.
|
default |
Definition at line 33 of file scriptcache.cpp.
|
inline |
Definition at line 36 of file scriptcache.cpp.
KeyType ScriptCacheElement::key |
Definition at line 28 of file scriptcache.cpp.
int ScriptCacheElement::nSigChecks |
Definition at line 29 of file scriptcache.cpp.