A function pointer to convert a key into a string. So we can set each value in both maps.
This map is from the stringified version of the key, to the value
Create an iterator over key, value pairs
Updates the signature map with the given signature. by generating a new node account id signature map if it does not exist or adding the signature to the existing node account id signature map.
Get a value by key or string.
This is the main benefit of this class. If a user provides a KeyT
we
implicitly serialize it to a string and use the string version. Otherwise
the user will get undefined
even for a key that exists in the map since
the KeyT
the provided has a different pointer than the one we have stored.
The string version doesn't have this issue since JS hashes the string and
that would result in both KeyT
hitting the same value even if they're
different pointers.
Get the keys of the map.
Stringify the map into something readable. NOTE: This implementation is not stable and can change.
Create iterator of values
Static
_This function is used to create a SignatureMap from an already built transaction.
This map is from the key, to the value