@openentity/sdk 0.3.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -3
- package/README.md +4 -0
- package/dist/chunk-BYNZITFU.js +2093 -0
- package/dist/index.d.ts +183 -1
- package/dist/index.js +81 -1779
- package/dist/node.d.ts +16 -0
- package/dist/node.js +56 -0
- package/package.json +6 -2
package/LICENSE
CHANGED
|
@@ -19,6 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
-
|
|
23
|
-
The specification (`spec/`) and the skill (`skill/`) are dedicated to the
|
|
24
|
-
public domain under CC0-1.0; see the LICENSE file in each directory.
|
package/README.md
CHANGED
|
@@ -8,4 +8,8 @@ npm install @openentity/sdk
|
|
|
8
8
|
|
|
9
9
|
Most agents want the CLI instead: `npx openentity@latest adopt`. Start at https://openentity.org/llms.txt.
|
|
10
10
|
|
|
11
|
+
Shared core: `adopt(kp, {name, client})`, `trust(eid)` (a `TrustReport` from registry reads only, every signature verified locally, cached 5 minutes, `ok: false` on any failure), the issuer helpers `signAttestation`, `signRevocation`, `buildDidDocument`, `buildOpenEntityJson`, and in Node `import { Identity } from "@openentity/sdk/node"` for `Identity.loadOrCreate()` (OS keychain, else `~/.openentity/identity.key` at 0600).
|
|
12
|
+
|
|
13
|
+
HTTP message signatures (RFC 9421, Web Bot Auth profile): `signRequest({method, url, body, privateKey, did})` returns `Signature-Input`, `Signature` and, for a non-empty body, `Content-Digest` (ed25519, `keyid` = the signer's did:key, covers `@method`, `@target-uri`, `content-digest`; `created`, `expires`, `nonce`). `verifyRequest({method, url, headers, body})` returns `{did, keyid, created, expires, nonce}` or throws `HttpSigError` with a `.code` (`missing_headers`, `unknown_alg`, `bad_keyid`, `digest_mismatch`, `created_in_future`, `created_too_old`, `expired`, `lifetime_too_long`, `missing_nonce`, `bad_signature`). Nonce replay tracking is yours. Shared vectors: `test-vectors/http-signature.json`.
|
|
14
|
+
|
|
11
15
|
MIT licensed. Source: https://github.com/moltbot-den/openentity
|