meta: make a read-only version to enforce token immutability

This commit is contained in:
Michael Muré
2024-11-06 15:17:35 +01:00
parent cfb4446a05
commit 6aeb6a8b70
5 changed files with 54 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ type Token interface {
// Issuer returns the did.DID representing the Token's issuer.
Issuer() did.DID
// Meta returns the Token's metadata.
Meta() *meta.Meta
Meta() meta.ReadOnly
}
type Marshaller interface {