Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 10 additions & 0 deletions src/utils/Udi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Loading