![]() |
Bitcoin ABC 0.32.4
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...
#include <scriptcache.h>
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 52 of file scriptcache.h.
Definition at line 53 of file scriptcache.h.
|
default |
|
inline |
Definition at line 60 of file scriptcache.h.
|
inline |
Definition at line 63 of file scriptcache.h.
| KeyType ScriptCacheElement::key |
Definition at line 55 of file scriptcache.h.
| int ScriptCacheElement::nSigChecks |
Definition at line 56 of file scriptcache.h.