Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Decorator = &decorator{}
Decorator is an off-ledger decorator that ensures the key is the hash of the value.
Functions ¶
func GetCASKeyAndValue ¶
GetCASKeyAndValue first normalizes the content (i.e. if the content is a JSON doc then the fields are marshaled in a deterministic order) and returns the content-addressable key (encoded in base64) along with the normalized value.
func GetCASKeyAndValueBase58 ¶
GetCASKeyAndValueBase58 first normalizes the content (i.e. if the content is a JSON doc then the fields are marshaled in a deterministic order) and returns the content-addressable key (first encoded in base64 and then in base58) along with the normalized value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.