chainweb-node
chainweb-node copied to clipboard
Principal namespaces
This PR modifies the namespace contract ns to allow for autonomously-generated namespaces using principal account protocols. The schema is as follows:
- Users may create a principal namespace name using the new
create-principal-namespacefunction added to the contract in this PR for the admin guard they might care to use to govern their namespace. - Autonomously generated namespace names are of the format
n_ + (160 bit truncations of Blake2b_256 hash of guard). - When issuing
define-namespaaceandnamespacein a Pact script, if the namespace name is the same as the created name (checked against the admin guard), then usage will succeed and otherwise fail.