@dexterai/vault 0.2.0 → 0.2.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.
|
@@ -102,6 +102,7 @@ var WebAuthnAssertion = class {
|
|
|
102
102
|
const compactSignature = derSignatureToCompactLowS(derSignature);
|
|
103
103
|
return {
|
|
104
104
|
signature: compactSignature,
|
|
105
|
+
signatureDer: derSignature,
|
|
105
106
|
clientDataJSON: new Uint8Array(assertion.clientDataJSON),
|
|
106
107
|
authenticatorData: new Uint8Array(assertion.authenticatorData)
|
|
107
108
|
};
|
|
@@ -42,6 +42,14 @@ interface WebAuthnAssertionConfig {
|
|
|
42
42
|
interface WebAuthnAssertionResult {
|
|
43
43
|
/** 64-byte compact r||s P-256 signature, lowS-normalized (SIMD-0075 requires lowS). */
|
|
44
44
|
signature: Uint8Array;
|
|
45
|
+
/**
|
|
46
|
+
* Raw DER-encoded ECDSA signature as returned by the authenticator,
|
|
47
|
+
* BEFORE the compact-lowS conversion. Kept so consumers that need to
|
|
48
|
+
* forward the assertion to a WebAuthn server library (which expects
|
|
49
|
+
* DER) don't have to re-run the ceremony. The on-chain bytes are
|
|
50
|
+
* `signature` (compact); DER is for server-side verify legs.
|
|
51
|
+
*/
|
|
52
|
+
signatureDer: Uint8Array;
|
|
45
53
|
/** Raw clientDataJSON as returned by the authenticator. */
|
|
46
54
|
clientDataJSON: Uint8Array;
|
|
47
55
|
/** Raw authenticatorData as returned by the authenticator. */
|
|
@@ -42,6 +42,14 @@ interface WebAuthnAssertionConfig {
|
|
|
42
42
|
interface WebAuthnAssertionResult {
|
|
43
43
|
/** 64-byte compact r||s P-256 signature, lowS-normalized (SIMD-0075 requires lowS). */
|
|
44
44
|
signature: Uint8Array;
|
|
45
|
+
/**
|
|
46
|
+
* Raw DER-encoded ECDSA signature as returned by the authenticator,
|
|
47
|
+
* BEFORE the compact-lowS conversion. Kept so consumers that need to
|
|
48
|
+
* forward the assertion to a WebAuthn server library (which expects
|
|
49
|
+
* DER) don't have to re-run the ceremony. The on-chain bytes are
|
|
50
|
+
* `signature` (compact); DER is for server-side verify legs.
|
|
51
|
+
*/
|
|
52
|
+
signatureDer: Uint8Array;
|
|
45
53
|
/** Raw clientDataJSON as returned by the authenticator. */
|
|
46
54
|
clientDataJSON: Uint8Array;
|
|
47
55
|
/** Raw authenticatorData as returned by the authenticator. */
|
|
@@ -76,6 +76,7 @@ var WebAuthnAssertion = class {
|
|
|
76
76
|
const compactSignature = derSignatureToCompactLowS(derSignature);
|
|
77
77
|
return {
|
|
78
78
|
signature: compactSignature,
|
|
79
|
+
signatureDer: derSignature,
|
|
79
80
|
clientDataJSON: new Uint8Array(assertion.clientDataJSON),
|
|
80
81
|
authenticatorData: new Uint8Array(assertion.authenticatorData)
|
|
81
82
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexterai/vault",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Canonical off-chain mirror of the dexter-vault Solana Anchor program — Solana instruction builders, byte-precise message encoders, account decoders, secp256r1/Ed25519 precompile helpers, counterfactual Swig derivation, and signer interfaces. The single source of truth for any TypeScript code that produces bytes the on-chain program will verify.",
|
|
5
5
|
"author": "Dexter",
|
|
6
6
|
"license": "MIT",
|