mintBlue

Examples

Two complete applications built on the SDK, small enough to read in one sitting and structured so you can lift pieces out of them.

The guides take one job at a time. These are whole programs: every call in context, including the parts a guide leaves out because they are not the point of the guide.

What each one shows

Password managerNotary Express
SizeAbout sixty linesAbout seventy lines
ShapeCommand-line programHTTP service with a form
SDK callscreateTransaction, listTransactions, getTransactioncreateTransaction, listTransactions, getTransaction, utils.sha256s
PublishesAn encrypted data output per entryA digest as a data output
The idea it carriesRecords you write are records only you can readA record whose value is a fingerprint, not the document

Read the password manager first if you want to see the read and write path in the smallest possible program. Read the notary if you want to see the SDK inside a service that answers requests.

Before you run either

Both need the same three things as every guide: an SDK access token, a project id, and the package installed.

npm install @mintblue/sdk

Both read those two values from the environment rather than from a literal, so a copy of the file cannot carry a live credential anywhere.

export MINTBLUE_SDK_TOKEN=...
export MINTBLUE_PROJECT_ID=...

Neither example needs anything else from mintBlue. Anything else they install is a plain npm dependency named on the page.

On this page