id 1.3.0
Install from the command line:
Learn more about npm packages
$ npm install @truestamp/id@1.3.0
Install via package.json:
"@truestamp/id": "1.3.0"
About this version
A Truestamp ID serialize/deserialize library and simple command line tool written in Typescript.
- The ID is typically ~75 characters in length. This exact length is not guaranteed.
- The ID prefix is always
truestamp-
, it is ignored during ID parsing and can be modified or removed. Two hyphens in an ID invalidates it. - The body of the ID is Base58Check encoded.
- The Base58Check decoded bytes decoded, validated and checked against a keyed SipHash Message Authentication Code (MAC) to help prevent forgery of IDs or DoS attacks.
npm install @truestamp/id
There is an example for Node.js in the /examples directory.
npm run build
cd examples/node
npm i
node index.js
There is a very simple CLI that will decode a Truestamp ID and display the data stored within it.
$ ./bin/truestamp-id.cjs truestamp-11RuhkBx6tQHcsRtbtJcn5TU232Fp9NP7D3DsH65FX6B5nEWXNx7UjMR4nAo
{
test: false,
timestamp: '1640995200000000',
ulid: '01G9ZMQHC1ZAGJNF52AEZ0AGYV'
}
- Commit changes, merge PR's to
main
branch - Bump
version
field inpackage.json
- Cut a new release
- New release will trigger workflow to build, test, and publish private package to Github Package Registry.
Copyright © 2021-2022 Truestamp Inc. All Rights Reserved.