2023-10-19 16:33:02 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
# Contract storage scheme
|
|
|
|
|
|
|
|
| Key | Value | Description |
|
|
|
|
|------------------------------------------|--------|-----------------------------------|
|
|
|
|
| 'c' + uint16(len(container)) + container | []byte | Namespace chain |
|
|
|
|
| 'n' + uint16(len(namespace)) + namespace | []byte | Container chain |
|
2024-01-18 07:46:19 +00:00
|
|
|
| 'm' + entity name (namespace/container) | []byte | Mapped name to an encoded number |
|
|
|
|
| 'counter' | uint64 | Integer counter used for mapping |
|
2023-10-19 16:33:02 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
package policy
|