Mst Module
Merkle Search Tree (MST) data structure for AT Protocol repositories.
Functions and values
| Function or value |
Description
|
|
|
Full Usage:
commonPrefixLen a b
Parameters:
string
b : string
Returns: int
|
Compute the common prefix length between two strings.
|
|
|
|
|
|
|
|
|
An empty MST.
|
|
Full Usage:
heightForKey key
Parameters:
string
Returns: int
|
Compute the MST height (layer) for a key. Counts leading zero 2-bit pairs in the SHA-256 hash of the key's UTF-8 bytes.
|
|
|
|
|
|