Directories
¶
| Path | Synopsis |
|---|---|
|
Package b64 is base64url as every KeyGrant token is written (RFC 4648 section 5, no padding), read only in its canonical form.
|
Package b64 is base64url as every KeyGrant token is written (RFC 4648 section 5, no padding), read only in its canonical form. |
|
Package device is who the device is: the fingerprints the SDK sends, the claims a lease names a device by, and the default fingerprinter's reading of the machine id (the reference's adapters.ts, device.ts, machine-id.ts).
|
Package device is who the device is: the fingerprints the SDK sends, the claims a lease names a device by, and the default fingerprinter's reading of the machine id (the reference's adapters.ts, device.ts, machine-id.ts). |
|
Package jsonx reads JSON as the reference SDK's JSON.parse does, into values a caller reads by exact member name: objects as map[string]any, arrays as []any, strings, booleans, nil, and numbers kept as their text (json.Number), so a whole number written 4.0, a number past 2^53 and one past a double's range are each seen for what they are.
|
Package jsonx reads JSON as the reference SDK's JSON.parse does, into values a caller reads by exact member name: objects as map[string]any, arrays as []any, strings, booleans, nil, and numbers kept as their text (json.Number), so a whole number written 4.0, a number past 2^53 and one past a double's range are each seen for what they are. |
|
Package jstext does to text what the reference SDK's JavaScript does to it, so a key, an address or a name is read the same in every KeyGrant SDK: String.prototype.trim, String.prototype.toUpperCase, lengths counted in UTF-16 units, and TextDecoder's reading of UTF-8.
|
Package jstext does to text what the reference SDK's JavaScript does to it, so a key, an address or a name is read the same in every KeyGrant SDK: String.prototype.trim, String.prototype.toUpperCase, lengths counted in UTF-16 units, and TextDecoder's reading of UTF-8. |
|
Package lease verifies a KeyGrant lease offline: a compact JWS, EdDSA over Ed25519, against the build's key set (the reference's shared crypto.ts verifyLease), and reads its claims as the reference reads them.
|
Package lease verifies a KeyGrant lease offline: a compact JWS, EdDSA over Ed25519, against the build's key set (the reference's shared crypto.ts verifyLease), and reads its claims as the reference reads them. |
|
Package licensefile reads and judges a licence file (sdk-contract.md section 10; the reference's shared license-file.ts, license-file-text.ts and the reference's license-file.ts): the container, the token verified offline against the build's key set, the judgement for this app and the status a stored one gives.
|
Package licensefile reads and judges a licence file (sdk-contract.md section 10; the reference's shared license-file.ts, license-file-text.ts and the reference's license-file.ts): the container, the token verified offline against the build's key set, the judgement for this app and the status a stored one gives. |
|
Package meters is metered uses' logic (sdk-contract.md section 12; the reference's meters.ts and journal.ts): what use() was asked, the figures, a status's meters, spending offline, when a spend asks, the reports a request carries and the confirmations an answer brings, what a use answer does, and the journal of unsynced spends.
|
Package meters is metered uses' logic (sdk-contract.md section 12; the reference's meters.ts and journal.ts): what use() was asked, the figures, a status's meters, spending offline, when a spend asks, the reports a request carries and the confirmations an answer brings, what a use answer does, and the journal of unsynced spends. |
|
Package offline is what the SDK decides from what the device holds, without asking the server (the reference's offline.ts): whether a lease licenses this build, what a trial shows, which refusal still stands, and when to ask again.
|
Package offline is what the SDK decides from what the device holds, without asking the server (the reference's offline.ts): whether a lease licenses this build, what a trial shows, which refusal still stands, and when to ask again. |
|
Package pickup is key pickup's logic (sdk-contract.md section 13; the reference's pickup.ts): what a person typed prepared to send, a refusal's word, a confirm's keys read leniently, and the key a restore activates.
|
Package pickup is key pickup's logic (sdk-contract.md section 13; the reference's pickup.ts): what a person typed prepared to send, a refusal's word, a confirm's keys read leniently, and the key a restore activates. |
|
Package state is what the SDK keeps on disk (sdk-contract.md 5.5): the stored state, a JSON object every KeyGrant SDK reads and writes the same way, how a save lands on it (merge.go), and the clock guard (clock.go).
|
Package state is what the SDK keeps on disk (sdk-contract.md 5.5): the stored state, a JSON object every KeyGrant SDK reads and writes the same way, how a save lands on it (merge.go), and the clock guard (clock.go). |
|
Package store is the SDK's default state file (the reference's storage.ts, storage-fs.ts; sdk-contract.md section 6): where it lives, and how it is read and written so that neither a crash nor a busy disk ever costs a customer their licence.
|
Package store is the SDK's default state file (the reference's storage.ts, storage-fs.ts; sdk-contract.md section 6): where it lives, and how it is read and written so that neither a crash nor a busy disk ever costs a customer their licence. |
|
Package wire is what the SDK sends and reads on the wire (the reference's wire.ts): the server's error words, the bounds the endpoints hold strings to, and the shapes of their answers.
|
Package wire is what the SDK sends and reads on the wire (the reference's wire.ts): the server's error words, the bounds the endpoints hold strings to, and the shapes of their answers. |
Click to show internal directories.
Click to hide internal directories.