We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Asset
1 parent a03717f commit aadd2feCopy full SHA for aadd2fe
asset/asset.go
@@ -2011,6 +2011,12 @@ func (a *Asset) Leaf() (*mssmt.LeafNode, error) {
2011
return mssmt.NewLeafNode(buf.Bytes(), a.Amount), nil
2012
}
2013
2014
+// Specifier returns the asset's specifier.
2015
+func (a *Asset) Specifier() Specifier {
2016
+ id := a.Genesis.ID()
2017
+ return NewSpecifierOptionalGroupKey(id, a.GroupKey)
2018
+}
2019
+
2020
// Validate ensures that an asset is valid.
2021
func (a *Asset) Validate() error {
2022
// TODO(ffranr): Add validation check for remaining fields.
0 commit comments