diff --git a/CHANGELOG.md b/CHANGELOG.md index 61597a2..b53fcc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.0.1-alpha.180](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.179...v0.0.1-alpha.180) (2024-10-31) + + +### Features + +* add base32 getters to udi class ([3ea58d9](https://github.com/DIG-Network/dig-chia-sdk/commit/3ea58d9efd8a7f6e76e6716698cfeb03af29858c)) + ### [0.0.1-alpha.179](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.178...v0.0.1-alpha.179) (2024-10-31) diff --git a/package-lock.json b/package-lock.json index d07e65c..68a6b69 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.179", + "version": "0.0.1-alpha.180", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.179", + "version": "0.0.1-alpha.180", "license": "ISC", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.29", diff --git a/package.json b/package.json index 3d66d32..7fc7ce8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dignetwork/dig-sdk", - "version": "0.0.1-alpha.179", + "version": "0.0.1-alpha.180", "description": "", "type": "commonjs", "main": "./dist/index.js", diff --git a/src/utils/Udi.ts b/src/utils/Udi.ts index 6d8f438..d840946 100644 --- a/src/utils/Udi.ts +++ b/src/utils/Udi.ts @@ -145,6 +145,16 @@ class Udi { get rootHash(): string | null { return this._rootHash ? this._rootHash.toString('hex') : null; } + + // Getter for storeId as a hex string + get storeIdBase32(): string { + return this.bufferToString(this._storeId, 'base32') ; + } + + // Getter for rootHash as a hex string + get rootHashBase32(): string | null { + return this._rootHash ? this.bufferToString(this._rootHash, 'base32') : null; + } } export { Udi };