@amadeus-protocol/wallet-sdk 0.1.0 → 0.1.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/dist/constants.d.ts +7 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +7 -1
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/transport/session.d.ts.map +1 -1
- package/dist/transport/session.js +4 -2
- package/dist/transport/session.js.map +1 -1
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -65,6 +65,12 @@ declare const WALLET_WINDOW_EVENTS: {
|
|
|
65
65
|
declare const PROVIDER_EVENTS: readonly ["accountsChanged", "connect", "disconnect", "lock", "unlock", "networkChanged"];
|
|
66
66
|
/** The valid networks the wallet exposes. */
|
|
67
67
|
declare const NETWORKS: readonly ["mainnet", "testnet", "custom"];
|
|
68
|
+
/**
|
|
69
|
+
* Default cross-device relay ("bridge") URL. dApps that don't pass their own
|
|
70
|
+
* `bridgeUrl` to `createConnectRequest` fall back to this. Must be https (the
|
|
71
|
+
* wallet rejects non-https bridge URLs via `assertAllowedBridgeUrl`).
|
|
72
|
+
*/
|
|
73
|
+
declare const DEFAULT_BRIDGE_URL = "https://bridge.ama.one";
|
|
68
74
|
//#endregion
|
|
69
|
-
export { API_KEY_DST, CONNECT_DST, CONNECT_TRANSCRIPT_LABEL, MAX_API_KEY_STRING_LENGTH, NETWORKS, PROTOCOL_VERSION, PROVIDER_EVENTS, PROVIDER_GLOBAL, PUBLIC_KEY_BYTE_LENGTH, SEED_BYTE_LENGTH, SESSION_NONCE_BYTE_LENGTH, SESSION_PUBLIC_KEY_BYTE_LENGTH, SESSION_SECRET_KEY_BYTE_LENGTH, SIGNATURE_BYTE_LENGTH, TX_DST, WALLET_INITIALIZED_EVENT, WALLET_WINDOW_EVENTS };
|
|
75
|
+
export { API_KEY_DST, CONNECT_DST, CONNECT_TRANSCRIPT_LABEL, DEFAULT_BRIDGE_URL, MAX_API_KEY_STRING_LENGTH, NETWORKS, PROTOCOL_VERSION, PROVIDER_EVENTS, PROVIDER_GLOBAL, PUBLIC_KEY_BYTE_LENGTH, SEED_BYTE_LENGTH, SESSION_NONCE_BYTE_LENGTH, SESSION_PUBLIC_KEY_BYTE_LENGTH, SESSION_SECRET_KEY_BYTE_LENGTH, SIGNATURE_BYTE_LENGTH, TX_DST, WALLET_INITIALIZED_EVENT, WALLET_WINDOW_EVENTS };
|
|
70
76
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","names":[],"sources":["../src/constants.ts"],"mappings":";;;;;;;;;;;;;cAaa;;;;;;;cAQA;;;;;;cAOA;;cAGA;cACA;cACA;;;;;;;cAQA;;cAGA;cACA;cACA;;cAGA;;cAGA;;cAGA;;;;;;cAOA;;cAGA;;;;;;;;;cAUA;;cAUA"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","names":[],"sources":["../src/constants.ts"],"mappings":";;;;;;;;;;;;;cAaa;;;;;;;cAQA;;;;;;cAOA;;cAGA;cACA;cACA;;;;;;;cAQA;;cAGA;cACA;cACA;;cAGA;;cAGA;;cAGA;;;;;;cAOA;;cAGA;;;;;;;;;cAUA;;cAUA;;;;;;cAOA"}
|
package/dist/constants.js
CHANGED
|
@@ -76,7 +76,13 @@ const NETWORKS = [
|
|
|
76
76
|
"testnet",
|
|
77
77
|
"custom"
|
|
78
78
|
];
|
|
79
|
+
/**
|
|
80
|
+
* Default cross-device relay ("bridge") URL. dApps that don't pass their own
|
|
81
|
+
* `bridgeUrl` to `createConnectRequest` fall back to this. Must be https (the
|
|
82
|
+
* wallet rejects non-https bridge URLs via `assertAllowedBridgeUrl`).
|
|
83
|
+
*/
|
|
84
|
+
const DEFAULT_BRIDGE_URL = "https://bridge.ama.one";
|
|
79
85
|
//#endregion
|
|
80
|
-
export { API_KEY_DST, CONNECT_DST, CONNECT_TRANSCRIPT_LABEL, MAX_API_KEY_STRING_LENGTH, NETWORKS, PROTOCOL_VERSION, PROVIDER_EVENTS, PROVIDER_GLOBAL, PUBLIC_KEY_BYTE_LENGTH, SEED_BYTE_LENGTH, SESSION_NONCE_BYTE_LENGTH, SESSION_PUBLIC_KEY_BYTE_LENGTH, SESSION_SECRET_KEY_BYTE_LENGTH, SIGNATURE_BYTE_LENGTH, TX_DST, WALLET_INITIALIZED_EVENT, WALLET_WINDOW_EVENTS };
|
|
86
|
+
export { API_KEY_DST, CONNECT_DST, CONNECT_TRANSCRIPT_LABEL, DEFAULT_BRIDGE_URL, MAX_API_KEY_STRING_LENGTH, NETWORKS, PROTOCOL_VERSION, PROVIDER_EVENTS, PROVIDER_GLOBAL, PUBLIC_KEY_BYTE_LENGTH, SEED_BYTE_LENGTH, SESSION_NONCE_BYTE_LENGTH, SESSION_PUBLIC_KEY_BYTE_LENGTH, SESSION_SECRET_KEY_BYTE_LENGTH, SIGNATURE_BYTE_LENGTH, TX_DST, WALLET_INITIALIZED_EVENT, WALLET_WINDOW_EVENTS };
|
|
81
87
|
|
|
82
88
|
//# sourceMappingURL=constants.js.map
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":[],"sources":["../src/constants.ts"],"sourcesContent":["/**\n * Protocol constants for the Amadeus dApp <-> wallet connection layer.\n *\n * The Domain Separation Tags (DSTs) below are the single most safety-critical\n * values in this package. A signature made under one DST can NEVER verify under\n * another (BLS hash-to-curve mixes the DST into the point), which is exactly how\n * we guarantee an auth signature can never be replayed as a transaction, and\n * vice-versa. Two of these (`TX`, `APIKEY`) already exist in production — in\n * `@amadeus-protocol/sdk` and in the wallet extension respectively — and MUST\n * stay byte-for-byte identical here or existing tokens/txs stop verifying.\n */\n\n/** Transactions. Owned by `@amadeus-protocol/sdk` (`signing.ts`). Do not change. */\nexport const TX_DST = 'AMADEUS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_TX_'\n\n/**\n * KBS bearer / API-key tokens. Currently hand-rolled identically in the wallet\n * extension (`background/handlers/api-key.ts`) and in hub/prime-hub\n * (`utils/blsWallet.ts`). This package is the one audited home for it. Do not\n * change — `kbs.ama.one` verifies against this exact tag.\n */\nexport const API_KEY_DST = 'AMADEUS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_APIKEY_'\n\n/**\n * Connection-auth transcript signatures. NEW in this package — nothing verified\n * it before, so there is no backward-compat constraint. Deliberately distinct\n * from every other DST so a connect proof is unusable anywhere else.\n */\nexport const CONNECT_DST = 'AMADEUS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_CONNECT_'\n\n/** Byte lengths of the Amadeus BLS12-381 \"long-signature\" variant (G1 pk / G2 sig). */\nexport const PUBLIC_KEY_BYTE_LENGTH = 48\nexport const SIGNATURE_BYTE_LENGTH = 96\nexport const SEED_BYTE_LENGTH = 64\n\n/**\n * Hard cap on the length of an api-key string accepted for decoding. A genuine\n * token is ~260 chars; this bounds untrusted input BEFORE the (quadratic) Base58\n * decode so a huge string can't stall the verifier's event loop. Generous enough\n * for a multi-hundred-char audience claim.\n */\nexport const MAX_API_KEY_STRING_LENGTH = 1024\n\n/** x25519 / xchacha20-poly1305 session-box parameters. */\nexport const SESSION_PUBLIC_KEY_BYTE_LENGTH = 32\nexport const SESSION_SECRET_KEY_BYTE_LENGTH = 32\nexport const SESSION_NONCE_BYTE_LENGTH = 24\n\n/** Wire protocol version. Absent in the extension today; new requests carry it. */\nexport const PROTOCOL_VERSION = 1\n\n/** Label mixed into the connect transcript so its bytes are unambiguous. */\nexport const CONNECT_TRANSCRIPT_LABEL = 'amadeus-connect/v1'\n\n/** The injected-provider global name and feature-detect flag. */\nexport const PROVIDER_GLOBAL = 'amadeus'\n\n/**\n * The canonical wallet-ready window event. NOTE: several dApps historically\n * listened for the WRONG name `amadeus#initialized`; the real one the extension\n * dispatches is `amadeus-wallet#initialized`. Consumers should use this constant.\n */\nexport const WALLET_INITIALIZED_EVENT = 'amadeus-wallet#initialized'\n\n/** All window CustomEvents the wallet dispatches on the page. */\nexport const WALLET_WINDOW_EVENTS = {\n\tinitialized: 'amadeus-wallet#initialized',\n\tconnected: 'amadeus-wallet#connected',\n\tdisconnected: 'amadeus-wallet#disconnected',\n\tlocked: 'amadeus-wallet#locked',\n\tunlocked: 'amadeus-wallet#unlocked',\n\tnetworkChanged: 'amadeus-wallet#networkChanged'\n} as const\n\n/** Provider `.on()` event names (EIP-1193-style). */\nexport const PROVIDER_EVENTS = [\n\t'accountsChanged',\n\t'connect',\n\t'disconnect',\n\t'lock',\n\t'unlock',\n\t'networkChanged'\n] as const\n\n/** The valid networks the wallet exposes. */\nexport const NETWORKS = ['mainnet', 'testnet', 'custom'] as const\n"],"mappings":";;;;;;;;;;;;;AAaA,MAAa,SAAS;;;;;;;AAQtB,MAAa,cAAc;;;;;;AAO3B,MAAa,cAAc;;AAG3B,MAAa,yBAAyB;AACtC,MAAa,wBAAwB;AACrC,MAAa,mBAAmB;;;;;;;AAQhC,MAAa,4BAA4B;;AAGzC,MAAa,iCAAiC;AAC9C,MAAa,iCAAiC;AAC9C,MAAa,4BAA4B;;AAGzC,MAAa,mBAAmB;;AAGhC,MAAa,2BAA2B;;AAGxC,MAAa,kBAAkB;;;;;;AAO/B,MAAa,2BAA2B;;AAGxC,MAAa,uBAAuB;CACnC,aAAa;CACb,WAAW;CACX,cAAc;CACd,QAAQ;CACR,UAAU;CACV,gBAAgB;AACjB;;AAGA,MAAa,kBAAkB;CAC9B;CACA;CACA;CACA;CACA;CACA;AACD;;AAGA,MAAa,WAAW;CAAC;CAAW;CAAW;AAAQ"}
|
|
1
|
+
{"version":3,"file":"constants.js","names":[],"sources":["../src/constants.ts"],"sourcesContent":["/**\n * Protocol constants for the Amadeus dApp <-> wallet connection layer.\n *\n * The Domain Separation Tags (DSTs) below are the single most safety-critical\n * values in this package. A signature made under one DST can NEVER verify under\n * another (BLS hash-to-curve mixes the DST into the point), which is exactly how\n * we guarantee an auth signature can never be replayed as a transaction, and\n * vice-versa. Two of these (`TX`, `APIKEY`) already exist in production — in\n * `@amadeus-protocol/sdk` and in the wallet extension respectively — and MUST\n * stay byte-for-byte identical here or existing tokens/txs stop verifying.\n */\n\n/** Transactions. Owned by `@amadeus-protocol/sdk` (`signing.ts`). Do not change. */\nexport const TX_DST = 'AMADEUS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_TX_'\n\n/**\n * KBS bearer / API-key tokens. Currently hand-rolled identically in the wallet\n * extension (`background/handlers/api-key.ts`) and in hub/prime-hub\n * (`utils/blsWallet.ts`). This package is the one audited home for it. Do not\n * change — `kbs.ama.one` verifies against this exact tag.\n */\nexport const API_KEY_DST = 'AMADEUS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_APIKEY_'\n\n/**\n * Connection-auth transcript signatures. NEW in this package — nothing verified\n * it before, so there is no backward-compat constraint. Deliberately distinct\n * from every other DST so a connect proof is unusable anywhere else.\n */\nexport const CONNECT_DST = 'AMADEUS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_CONNECT_'\n\n/** Byte lengths of the Amadeus BLS12-381 \"long-signature\" variant (G1 pk / G2 sig). */\nexport const PUBLIC_KEY_BYTE_LENGTH = 48\nexport const SIGNATURE_BYTE_LENGTH = 96\nexport const SEED_BYTE_LENGTH = 64\n\n/**\n * Hard cap on the length of an api-key string accepted for decoding. A genuine\n * token is ~260 chars; this bounds untrusted input BEFORE the (quadratic) Base58\n * decode so a huge string can't stall the verifier's event loop. Generous enough\n * for a multi-hundred-char audience claim.\n */\nexport const MAX_API_KEY_STRING_LENGTH = 1024\n\n/** x25519 / xchacha20-poly1305 session-box parameters. */\nexport const SESSION_PUBLIC_KEY_BYTE_LENGTH = 32\nexport const SESSION_SECRET_KEY_BYTE_LENGTH = 32\nexport const SESSION_NONCE_BYTE_LENGTH = 24\n\n/** Wire protocol version. Absent in the extension today; new requests carry it. */\nexport const PROTOCOL_VERSION = 1\n\n/** Label mixed into the connect transcript so its bytes are unambiguous. */\nexport const CONNECT_TRANSCRIPT_LABEL = 'amadeus-connect/v1'\n\n/** The injected-provider global name and feature-detect flag. */\nexport const PROVIDER_GLOBAL = 'amadeus'\n\n/**\n * The canonical wallet-ready window event. NOTE: several dApps historically\n * listened for the WRONG name `amadeus#initialized`; the real one the extension\n * dispatches is `amadeus-wallet#initialized`. Consumers should use this constant.\n */\nexport const WALLET_INITIALIZED_EVENT = 'amadeus-wallet#initialized'\n\n/** All window CustomEvents the wallet dispatches on the page. */\nexport const WALLET_WINDOW_EVENTS = {\n\tinitialized: 'amadeus-wallet#initialized',\n\tconnected: 'amadeus-wallet#connected',\n\tdisconnected: 'amadeus-wallet#disconnected',\n\tlocked: 'amadeus-wallet#locked',\n\tunlocked: 'amadeus-wallet#unlocked',\n\tnetworkChanged: 'amadeus-wallet#networkChanged'\n} as const\n\n/** Provider `.on()` event names (EIP-1193-style). */\nexport const PROVIDER_EVENTS = [\n\t'accountsChanged',\n\t'connect',\n\t'disconnect',\n\t'lock',\n\t'unlock',\n\t'networkChanged'\n] as const\n\n/** The valid networks the wallet exposes. */\nexport const NETWORKS = ['mainnet', 'testnet', 'custom'] as const\n\n/**\n * Default cross-device relay (\"bridge\") URL. dApps that don't pass their own\n * `bridgeUrl` to `createConnectRequest` fall back to this. Must be https (the\n * wallet rejects non-https bridge URLs via `assertAllowedBridgeUrl`).\n */\nexport const DEFAULT_BRIDGE_URL = 'https://bridge.ama.one'\n"],"mappings":";;;;;;;;;;;;;AAaA,MAAa,SAAS;;;;;;;AAQtB,MAAa,cAAc;;;;;;AAO3B,MAAa,cAAc;;AAG3B,MAAa,yBAAyB;AACtC,MAAa,wBAAwB;AACrC,MAAa,mBAAmB;;;;;;;AAQhC,MAAa,4BAA4B;;AAGzC,MAAa,iCAAiC;AAC9C,MAAa,iCAAiC;AAC9C,MAAa,4BAA4B;;AAGzC,MAAa,mBAAmB;;AAGhC,MAAa,2BAA2B;;AAGxC,MAAa,kBAAkB;;;;;;AAO/B,MAAa,2BAA2B;;AAGxC,MAAa,uBAAuB;CACnC,aAAa;CACb,WAAW;CACX,cAAc;CACd,QAAQ;CACR,UAAU;CACV,gBAAgB;AACjB;;AAGA,MAAa,kBAAkB;CAC9B;CACA;CACA;CACA;CACA;CACA;AACD;;AAGA,MAAa,WAAW;CAAC;CAAW;CAAW;AAAQ;;;;;;AAOvD,MAAa,qBAAqB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { API_KEY_DST, CONNECT_DST, CONNECT_TRANSCRIPT_LABEL, MAX_API_KEY_STRING_LENGTH, NETWORKS, PROTOCOL_VERSION, PROVIDER_EVENTS, PROVIDER_GLOBAL, PUBLIC_KEY_BYTE_LENGTH, SEED_BYTE_LENGTH, SESSION_NONCE_BYTE_LENGTH, SESSION_PUBLIC_KEY_BYTE_LENGTH, SESSION_SECRET_KEY_BYTE_LENGTH, SIGNATURE_BYTE_LENGTH, TX_DST, WALLET_INITIALIZED_EVENT, WALLET_WINDOW_EVENTS } from "./constants.js";
|
|
1
|
+
import { API_KEY_DST, CONNECT_DST, CONNECT_TRANSCRIPT_LABEL, DEFAULT_BRIDGE_URL, MAX_API_KEY_STRING_LENGTH, NETWORKS, PROTOCOL_VERSION, PROVIDER_EVENTS, PROVIDER_GLOBAL, PUBLIC_KEY_BYTE_LENGTH, SEED_BYTE_LENGTH, SESSION_NONCE_BYTE_LENGTH, SESSION_PUBLIC_KEY_BYTE_LENGTH, SESSION_SECRET_KEY_BYTE_LENGTH, SIGNATURE_BYTE_LENGTH, TX_DST, WALLET_INITIALIZED_EVENT, WALLET_WINDOW_EVENTS } from "./constants.js";
|
|
2
2
|
import { WalletSdkError, WalletSdkErrorCode } from "./errors.js";
|
|
3
3
|
import { bytesToUtf8, concatBytes, equalBytes, randomBytes, randomId, u32be, utf8ToBytes } from "./bytes.js";
|
|
4
4
|
import { BYTES_TAG, TaggedBytes, decodeBinaryValues, describeBinaryValues, encodeBinaryValues, isTaggedBytes } from "./binary.js";
|
|
@@ -15,4 +15,4 @@ import { EstablishedSession, PendingConnect, WalletSession, approveConnect, comp
|
|
|
15
15
|
import { BridgeClient, BridgeClientOptions, BridgeFrame, assertAllowedBridgeUrl, deriveBridgeChannels, deriveConnectChannel } from "./transport/bridge.js";
|
|
16
16
|
import { WalletHandlerContext, handleRequest } from "./wallet/handler.js";
|
|
17
17
|
import { ApiKeyStore, WalletClient, createInjectedWalletClient } from "./client/injected.js";
|
|
18
|
-
export { API_KEY_DST, AmadeusEventPayloadMap, AmadeusNetwork, AmadeusProvider, AmadeusProviderEvent, ApiKeyPayload, ApiKeyStore, BYTES_TAG, BridgeClient, BridgeClientOptions, BridgeFrame, CONNECT_DST, CONNECT_TRANSCRIPT_LABEL, ConnectRequestParams, ConnectResponseParams, ConnectTranscript, ConnectTranscriptInput, DecodedApiKey, EstablishedSession, GenerateApiKeyParams, GenerateApiKeyRequest, GenerateApiKeyRequestInput, GenerateApiKeyResponse, GenerateApiKeyResult, MAX_API_KEY_STRING_LENGTH, NETWORKS, PROTOCOL_VERSION, PROVIDER_EVENTS, PROVIDER_GLOBAL, PUBLIC_KEY_BYTE_LENGTH, PendingConnect, SEED_BYTE_LENGTH, SESSION_NONCE_BYTE_LENGTH, SESSION_PUBLIC_KEY_BYTE_LENGTH, SESSION_SECRET_KEY_BYTE_LENGTH, SIGNATURE_BYTE_LENGTH, SealedEnvelope, SeenStore, SessionKeypair, SignConnectParams, SignTransactionParams, SignTransactionRequest, SignTransactionRequestInput, SignTransactionResponse, SignedTransaction, SignerKeys, SubmitTransactionOptions, TX_DST, TaggedBytes, URI_SCHEME, VerifyApiKeyOptions, VerifyApiKeyResult, VerifyConnectParams, WALLET_INITIALIZED_EVENT, WALLET_METHODS, WALLET_WINDOW_EVENTS, WalletClient, WalletHandlerContext, WalletMethod, WalletRequest, WalletResponse, WalletSdkError, WalletSdkErrorCode, WalletSession, addressSchema, approveConnect, assertAllowedBridgeUrl, buildConnectResponseUri, buildConnectTranscript, buildConnectUri, bytesToUtf8, completeConnect, concatBytes, connectTranscriptSchema, createConnectRequest, createInjectedWalletClient, createMemorySeenStore, decodeApiKey, decodeBinaryValues, deriveBridgeChannels, deriveConnectChannel, deriveSharedKey, deriveSigner, describeBinaryValues, encodeBinaryValues, equalBytes, generateApiKey, generateApiKeyRequestSchema, generateSessionKeypair, getAmadeusProvider, guardRequest, handleRequest, isConnectRequestExpired, isProviderAvailable, isTaggedBytes, makeRequest, networkSchema, open, openRequest, openResponse, originSchema, parseConnectResponseUri, parseConnectUri, publicKeyFromAddress, randomBytes, randomId, seal, sealRequest, sealResponse, sessionPublicKeySchema, signConnect, signHashed, signTransaction, signTransactionRequestSchema, signatureFromBase58, submitTransaction, u32be, utf8ToBytes, verifyApiKey, verifyConnect, verifyHashed };
|
|
18
|
+
export { API_KEY_DST, AmadeusEventPayloadMap, AmadeusNetwork, AmadeusProvider, AmadeusProviderEvent, ApiKeyPayload, ApiKeyStore, BYTES_TAG, BridgeClient, BridgeClientOptions, BridgeFrame, CONNECT_DST, CONNECT_TRANSCRIPT_LABEL, ConnectRequestParams, ConnectResponseParams, ConnectTranscript, ConnectTranscriptInput, DEFAULT_BRIDGE_URL, DecodedApiKey, EstablishedSession, GenerateApiKeyParams, GenerateApiKeyRequest, GenerateApiKeyRequestInput, GenerateApiKeyResponse, GenerateApiKeyResult, MAX_API_KEY_STRING_LENGTH, NETWORKS, PROTOCOL_VERSION, PROVIDER_EVENTS, PROVIDER_GLOBAL, PUBLIC_KEY_BYTE_LENGTH, PendingConnect, SEED_BYTE_LENGTH, SESSION_NONCE_BYTE_LENGTH, SESSION_PUBLIC_KEY_BYTE_LENGTH, SESSION_SECRET_KEY_BYTE_LENGTH, SIGNATURE_BYTE_LENGTH, SealedEnvelope, SeenStore, SessionKeypair, SignConnectParams, SignTransactionParams, SignTransactionRequest, SignTransactionRequestInput, SignTransactionResponse, SignedTransaction, SignerKeys, SubmitTransactionOptions, TX_DST, TaggedBytes, URI_SCHEME, VerifyApiKeyOptions, VerifyApiKeyResult, VerifyConnectParams, WALLET_INITIALIZED_EVENT, WALLET_METHODS, WALLET_WINDOW_EVENTS, WalletClient, WalletHandlerContext, WalletMethod, WalletRequest, WalletResponse, WalletSdkError, WalletSdkErrorCode, WalletSession, addressSchema, approveConnect, assertAllowedBridgeUrl, buildConnectResponseUri, buildConnectTranscript, buildConnectUri, bytesToUtf8, completeConnect, concatBytes, connectTranscriptSchema, createConnectRequest, createInjectedWalletClient, createMemorySeenStore, decodeApiKey, decodeBinaryValues, deriveBridgeChannels, deriveConnectChannel, deriveSharedKey, deriveSigner, describeBinaryValues, encodeBinaryValues, equalBytes, generateApiKey, generateApiKeyRequestSchema, generateSessionKeypair, getAmadeusProvider, guardRequest, handleRequest, isConnectRequestExpired, isProviderAvailable, isTaggedBytes, makeRequest, networkSchema, open, openRequest, openResponse, originSchema, parseConnectResponseUri, parseConnectUri, publicKeyFromAddress, randomBytes, randomId, seal, sealRequest, sealResponse, sessionPublicKeySchema, signConnect, signHashed, signTransaction, signTransactionRequestSchema, signatureFromBase58, submitTransaction, u32be, utf8ToBytes, verifyApiKey, verifyConnect, verifyHashed };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { API_KEY_DST, CONNECT_DST, CONNECT_TRANSCRIPT_LABEL, MAX_API_KEY_STRING_LENGTH, NETWORKS, PROTOCOL_VERSION, PROVIDER_EVENTS, PROVIDER_GLOBAL, PUBLIC_KEY_BYTE_LENGTH, SEED_BYTE_LENGTH, SESSION_NONCE_BYTE_LENGTH, SESSION_PUBLIC_KEY_BYTE_LENGTH, SESSION_SECRET_KEY_BYTE_LENGTH, SIGNATURE_BYTE_LENGTH, TX_DST, WALLET_INITIALIZED_EVENT, WALLET_WINDOW_EVENTS } from "./constants.js";
|
|
1
|
+
import { API_KEY_DST, CONNECT_DST, CONNECT_TRANSCRIPT_LABEL, DEFAULT_BRIDGE_URL, MAX_API_KEY_STRING_LENGTH, NETWORKS, PROTOCOL_VERSION, PROVIDER_EVENTS, PROVIDER_GLOBAL, PUBLIC_KEY_BYTE_LENGTH, SEED_BYTE_LENGTH, SESSION_NONCE_BYTE_LENGTH, SESSION_PUBLIC_KEY_BYTE_LENGTH, SESSION_SECRET_KEY_BYTE_LENGTH, SIGNATURE_BYTE_LENGTH, TX_DST, WALLET_INITIALIZED_EVENT, WALLET_WINDOW_EVENTS } from "./constants.js";
|
|
2
2
|
import { WalletSdkError } from "./errors.js";
|
|
3
3
|
import { bytesToUtf8, concatBytes, equalBytes, randomBytes, randomId, u32be, utf8ToBytes } from "./bytes.js";
|
|
4
4
|
import { BYTES_TAG, decodeBinaryValues, describeBinaryValues, encodeBinaryValues, isTaggedBytes } from "./binary.js";
|
|
@@ -15,4 +15,4 @@ import { approveConnect, completeConnect, createConnectRequest, isConnectRequest
|
|
|
15
15
|
import { BridgeClient, assertAllowedBridgeUrl, deriveBridgeChannels, deriveConnectChannel } from "./transport/bridge.js";
|
|
16
16
|
import { handleRequest } from "./wallet/handler.js";
|
|
17
17
|
import { createInjectedWalletClient } from "./client/injected.js";
|
|
18
|
-
export { API_KEY_DST, BYTES_TAG, BridgeClient, CONNECT_DST, CONNECT_TRANSCRIPT_LABEL, MAX_API_KEY_STRING_LENGTH, NETWORKS, PROTOCOL_VERSION, PROVIDER_EVENTS, PROVIDER_GLOBAL, PUBLIC_KEY_BYTE_LENGTH, SEED_BYTE_LENGTH, SESSION_NONCE_BYTE_LENGTH, SESSION_PUBLIC_KEY_BYTE_LENGTH, SESSION_SECRET_KEY_BYTE_LENGTH, SIGNATURE_BYTE_LENGTH, TX_DST, URI_SCHEME, WALLET_INITIALIZED_EVENT, WALLET_METHODS, WALLET_WINDOW_EVENTS, WalletSdkError, addressSchema, approveConnect, assertAllowedBridgeUrl, buildConnectResponseUri, buildConnectTranscript, buildConnectUri, bytesToUtf8, completeConnect, concatBytes, connectTranscriptSchema, createConnectRequest, createInjectedWalletClient, createMemorySeenStore, decodeApiKey, decodeBinaryValues, deriveBridgeChannels, deriveConnectChannel, deriveSharedKey, deriveSigner, describeBinaryValues, encodeBinaryValues, equalBytes, generateApiKey, generateApiKeyRequestSchema, generateSessionKeypair, getAmadeusProvider, guardRequest, handleRequest, isConnectRequestExpired, isProviderAvailable, isTaggedBytes, makeRequest, networkSchema, open, openRequest, openResponse, originSchema, parseConnectResponseUri, parseConnectUri, publicKeyFromAddress, randomBytes, randomId, seal, sealRequest, sealResponse, sessionPublicKeySchema, signConnect, signHashed, signTransaction, signTransactionRequestSchema, signatureFromBase58, submitTransaction, u32be, utf8ToBytes, verifyApiKey, verifyConnect, verifyHashed };
|
|
18
|
+
export { API_KEY_DST, BYTES_TAG, BridgeClient, CONNECT_DST, CONNECT_TRANSCRIPT_LABEL, DEFAULT_BRIDGE_URL, MAX_API_KEY_STRING_LENGTH, NETWORKS, PROTOCOL_VERSION, PROVIDER_EVENTS, PROVIDER_GLOBAL, PUBLIC_KEY_BYTE_LENGTH, SEED_BYTE_LENGTH, SESSION_NONCE_BYTE_LENGTH, SESSION_PUBLIC_KEY_BYTE_LENGTH, SESSION_SECRET_KEY_BYTE_LENGTH, SIGNATURE_BYTE_LENGTH, TX_DST, URI_SCHEME, WALLET_INITIALIZED_EVENT, WALLET_METHODS, WALLET_WINDOW_EVENTS, WalletSdkError, addressSchema, approveConnect, assertAllowedBridgeUrl, buildConnectResponseUri, buildConnectTranscript, buildConnectUri, bytesToUtf8, completeConnect, concatBytes, connectTranscriptSchema, createConnectRequest, createInjectedWalletClient, createMemorySeenStore, decodeApiKey, decodeBinaryValues, deriveBridgeChannels, deriveConnectChannel, deriveSharedKey, deriveSigner, describeBinaryValues, encodeBinaryValues, equalBytes, generateApiKey, generateApiKeyRequestSchema, generateSessionKeypair, getAmadeusProvider, guardRequest, handleRequest, isConnectRequestExpired, isProviderAvailable, isTaggedBytes, makeRequest, networkSchema, open, openRequest, openResponse, originSchema, parseConnectResponseUri, parseConnectUri, publicKeyFromAddress, randomBytes, randomId, seal, sealRequest, sealResponse, sessionPublicKeySchema, signConnect, signHashed, signTransaction, signTransactionRequestSchema, signatureFromBase58, submitTransaction, u32be, utf8ToBytes, verifyApiKey, verifyConnect, verifyHashed };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","names":[],"sources":["../../src/transport/session.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"session.d.ts","names":[],"sources":["../../src/transport/session.ts"],"mappings":";;;;UA6BiB;EAChB;EACA;EACA;;EAEA,aAAa;EACb;EACA;;UAGgB;;EAEhB;;EAEA,WAAW;;EAEX;;EAEA;EACA;;EAEA;;;iBAIe,qBAAqB;EACpC;EACA;EACA;EACA;EACA;;EACK;EAAa,SAAS;;;;;;;iBAoCZ,gBACf,SAAS,gBACT,UAAU,wBACR;UA4Bc;;EAEhB,UAAU;;EAEV,WAAW;;EAEX,eAAe;;EAEf;;EAEA;;;;;;;;iBASe,eACf,SAAS,sBACT;EAAW;EAAc;IACvB;;iBA4Ba,wBAAwB,SAAS,sBAAsB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "../constants.js";
|
|
1
2
|
import { WalletSdkError } from "../errors.js";
|
|
2
3
|
import { randomBytes, randomId } from "../bytes.js";
|
|
3
4
|
import { signConnect, verifyConnect } from "../crypto/connect.js";
|
|
@@ -27,6 +28,7 @@ function createConnectRequest(options) {
|
|
|
27
28
|
const challenge = toBase58(randomBytes(16));
|
|
28
29
|
const requestId = randomId();
|
|
29
30
|
const exp = Math.floor((options.now ?? Date.now()) / 1e3) + (options.ttlSeconds ?? 120);
|
|
31
|
+
const bridgeUrl = options.bridgeUrl ?? "https://bridge.ama.one";
|
|
30
32
|
return {
|
|
31
33
|
uri: buildConnectUri({
|
|
32
34
|
origin: options.origin,
|
|
@@ -35,7 +37,7 @@ function createConnectRequest(options) {
|
|
|
35
37
|
requestId,
|
|
36
38
|
exp,
|
|
37
39
|
redirectLink: options.redirectLink,
|
|
38
|
-
bridgeUrl
|
|
40
|
+
bridgeUrl
|
|
39
41
|
}),
|
|
40
42
|
pending: {
|
|
41
43
|
requestId,
|
|
@@ -43,7 +45,7 @@ function createConnectRequest(options) {
|
|
|
43
45
|
origin: options.origin,
|
|
44
46
|
dappKeypair,
|
|
45
47
|
exp,
|
|
46
|
-
bridgeUrl
|
|
48
|
+
bridgeUrl
|
|
47
49
|
}
|
|
48
50
|
};
|
|
49
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","names":[],"sources":["../../src/transport/session.ts"],"sourcesContent":["/**\n * The connect handshake, orchestrated for both sides. This is where the crypto\n * primitives (connect transcript signing + x25519 box) and the URI transport\n * come together into an actual dApp <-> wallet session.\n *\n * Flow:\n * dApp: createConnectRequest() -> show `uri` (link/QR), keep `pending`\n * wallet: parseConnectUri(uri) -> [approve in UI] -> approveConnect()\n * -> return `response` to the dApp\n * dApp: completeConnect(pending, response) -> EstablishedSession\n *\n * After that both sides hold the same `sharedKey` and exchange sealed envelopes\n * (see envelope.ts). The wallet signs the transcript binding origin + BOTH\n * session keys + challenge + requestId, so a captured proof can't be replayed\n * under substituted keys.\n */\n\nimport { toBase58 } from '@amadeus-protocol/sdk'\n\nimport { randomBytes, randomId } from '../bytes'\nimport { signConnect, verifyConnect, type ConnectTranscript } from '../crypto/connect'\nimport { deriveSharedKey, generateSessionKeypair, type SessionKeypair } from '../crypto/box'\nimport { WalletSdkError } from '../errors'\nimport { buildConnectUri, type ConnectRequestParams, type ConnectResponseParams } from './uri'\n\n// ── dApp side ───────────────────────────────────────────────────────────────\n\n/** State the dApp keeps locally between issuing a connect request and completing it. */\nexport interface PendingConnect {\n\trequestId: string\n\tchallenge: string\n\torigin: string\n\t/** The dApp's ephemeral session keypair (secret stays local). */\n\tdappKeypair: SessionKeypair\n\texp: number\n\tbridgeUrl?: string\n}\n\nexport interface EstablishedSession {\n\t/** The connected wallet address (Base58 public key). */\n\taddress: string\n\t/** 32-byte symmetric key for sealing/opening envelopes. Keep in memory only. */\n\tsharedKey: Uint8Array\n\t/** The wallet's session key — the peer's bridge client id to send frames to. */\n\twalletPublicKey: string\n\t/** This dApp's session key — its own bridge client id to listen on. */\n\tselfPublicKey: string\n\torigin: string\n\t/** Relay base URL for post-connect sealed messages, if provided. */\n\tbridgeUrl?: string\n}\n\n/** dApp: create a connect request. Returns the URI to display and the pending state to keep. */\nexport function createConnectRequest(options: {\n\torigin: string\n\tredirectLink?: string\n\tbridgeUrl?: string\n\tttlSeconds?: number\n\tnow?: number\n}): { uri: string; pending: PendingConnect } {\n\tconst dappKeypair = generateSessionKeypair()\n\tconst challenge = toBase58(randomBytes(16))\n\tconst requestId = randomId()\n\tconst nowSec = Math.floor((options.now ?? Date.now()) / 1000)\n\tconst exp = nowSec + (options.ttlSeconds ?? 120)\n\n\tconst params: ConnectRequestParams = {\n\t\torigin: options.origin,\n\t\tdappPublicKey: dappKeypair.publicKey,\n\t\tchallenge,\n\t\trequestId,\n\t\texp,\n\t\tredirectLink: options.redirectLink,\n\t\tbridgeUrl
|
|
1
|
+
{"version":3,"file":"session.js","names":[],"sources":["../../src/transport/session.ts"],"sourcesContent":["/**\n * The connect handshake, orchestrated for both sides. This is where the crypto\n * primitives (connect transcript signing + x25519 box) and the URI transport\n * come together into an actual dApp <-> wallet session.\n *\n * Flow:\n * dApp: createConnectRequest() -> show `uri` (link/QR), keep `pending`\n * wallet: parseConnectUri(uri) -> [approve in UI] -> approveConnect()\n * -> return `response` to the dApp\n * dApp: completeConnect(pending, response) -> EstablishedSession\n *\n * After that both sides hold the same `sharedKey` and exchange sealed envelopes\n * (see envelope.ts). The wallet signs the transcript binding origin + BOTH\n * session keys + challenge + requestId, so a captured proof can't be replayed\n * under substituted keys.\n */\n\nimport { toBase58 } from '@amadeus-protocol/sdk'\n\nimport { DEFAULT_BRIDGE_URL } from '../constants'\nimport { randomBytes, randomId } from '../bytes'\nimport { signConnect, verifyConnect, type ConnectTranscript } from '../crypto/connect'\nimport { deriveSharedKey, generateSessionKeypair, type SessionKeypair } from '../crypto/box'\nimport { WalletSdkError } from '../errors'\nimport { buildConnectUri, type ConnectRequestParams, type ConnectResponseParams } from './uri'\n\n// ── dApp side ───────────────────────────────────────────────────────────────\n\n/** State the dApp keeps locally between issuing a connect request and completing it. */\nexport interface PendingConnect {\n\trequestId: string\n\tchallenge: string\n\torigin: string\n\t/** The dApp's ephemeral session keypair (secret stays local). */\n\tdappKeypair: SessionKeypair\n\texp: number\n\tbridgeUrl?: string\n}\n\nexport interface EstablishedSession {\n\t/** The connected wallet address (Base58 public key). */\n\taddress: string\n\t/** 32-byte symmetric key for sealing/opening envelopes. Keep in memory only. */\n\tsharedKey: Uint8Array\n\t/** The wallet's session key — the peer's bridge client id to send frames to. */\n\twalletPublicKey: string\n\t/** This dApp's session key — its own bridge client id to listen on. */\n\tselfPublicKey: string\n\torigin: string\n\t/** Relay base URL for post-connect sealed messages, if provided. */\n\tbridgeUrl?: string\n}\n\n/** dApp: create a connect request. Returns the URI to display and the pending state to keep. */\nexport function createConnectRequest(options: {\n\torigin: string\n\tredirectLink?: string\n\tbridgeUrl?: string\n\tttlSeconds?: number\n\tnow?: number\n}): { uri: string; pending: PendingConnect } {\n\tconst dappKeypair = generateSessionKeypair()\n\tconst challenge = toBase58(randomBytes(16))\n\tconst requestId = randomId()\n\tconst nowSec = Math.floor((options.now ?? Date.now()) / 1000)\n\tconst exp = nowSec + (options.ttlSeconds ?? 120)\n\t// Fall back to the production relay when the dApp doesn't pin its own.\n\tconst bridgeUrl = options.bridgeUrl ?? DEFAULT_BRIDGE_URL\n\n\tconst params: ConnectRequestParams = {\n\t\torigin: options.origin,\n\t\tdappPublicKey: dappKeypair.publicKey,\n\t\tchallenge,\n\t\trequestId,\n\t\texp,\n\t\tredirectLink: options.redirectLink,\n\t\tbridgeUrl\n\t}\n\treturn {\n\t\turi: buildConnectUri(params),\n\t\tpending: {\n\t\t\trequestId,\n\t\t\tchallenge,\n\t\t\torigin: options.origin,\n\t\t\tdappKeypair,\n\t\t\texp,\n\t\t\tbridgeUrl\n\t\t}\n\t}\n}\n\n/**\n * dApp: verify the wallet's connect response and establish the session. Throws\n * `INVALID_ARGUMENT` if the response is for a different request, or\n * `BAD_SIGNATURE` if the connect proof does not verify against the transcript.\n */\nexport function completeConnect(\n\tpending: PendingConnect,\n\tresponse: ConnectResponseParams\n): EstablishedSession {\n\tif (response.requestId !== pending.requestId) {\n\t\tthrow new WalletSdkError('INVALID_ARGUMENT', 'response does not match the pending request')\n\t}\n\tconst transcript: ConnectTranscript = {\n\t\torigin: pending.origin,\n\t\tdappPublicKey: pending.dappKeypair.publicKey,\n\t\twalletPublicKey: response.walletPublicKey,\n\t\tchallenge: pending.challenge,\n\t\trequestId: pending.requestId\n\t}\n\tif (!verifyConnect({ address: response.address, transcript, signature: response.signature })) {\n\t\tthrow new WalletSdkError('BAD_SIGNATURE', 'connect proof failed verification')\n\t}\n\t// deriveSharedKey validates the wallet's session key (fails closed on a bad point).\n\tconst sharedKey = deriveSharedKey(response.walletPublicKey, pending.dappKeypair.secretKey)\n\treturn {\n\t\taddress: response.address,\n\t\tsharedKey,\n\t\twalletPublicKey: response.walletPublicKey,\n\t\tselfPublicKey: pending.dappKeypair.publicKey,\n\t\torigin: pending.origin,\n\t\tbridgeUrl: pending.bridgeUrl\n\t}\n}\n\n// ── wallet side ───────────────────────────────────────────────────────────────\n\nexport interface WalletSession {\n\t/** The response to hand back to the dApp (via callback URI or bridge frame). */\n\tresponse: ConnectResponseParams\n\t/** 32-byte symmetric key for sealing/opening envelopes. Keep in memory only. */\n\tsharedKey: Uint8Array\n\t/** The wallet's ephemeral session keypair for this dApp (its own bridge client id). */\n\twalletKeypair: SessionKeypair\n\t/** The dApp's session key — the peer's bridge client id to send frames to. */\n\tpeerPublicKey: string\n\t/** Relay base URL for post-connect sealed messages, if the dApp supplied one. */\n\tbridgeUrl?: string\n}\n\n/**\n * Wallet: approve a connect request and produce the signed response + session.\n * Call this ONLY AFTER the user has approved in the UI and the request's expiry\n * has been checked. `address` is the account that will be bound to this session\n * (bind to a specific account, not the live \"active\" one).\n */\nexport function approveConnect(\n\trequest: ConnectRequestParams,\n\toptions: { seed: string; address: string }\n): WalletSession {\n\tconst walletKeypair = generateSessionKeypair()\n\tconst transcript: ConnectTranscript = {\n\t\torigin: request.origin,\n\t\tdappPublicKey: request.dappPublicKey,\n\t\twalletPublicKey: walletKeypair.publicKey,\n\t\tchallenge: request.challenge,\n\t\trequestId: request.requestId\n\t}\n\tconst signature = signConnect({ seed: options.seed, transcript })\n\t// deriveSharedKey validates the dApp's session key (fails closed on a bad point).\n\tconst sharedKey = deriveSharedKey(request.dappPublicKey, walletKeypair.secretKey)\n\n\treturn {\n\t\tresponse: {\n\t\t\trequestId: request.requestId,\n\t\t\taddress: options.address,\n\t\t\twalletPublicKey: walletKeypair.publicKey,\n\t\t\tsignature\n\t\t},\n\t\tsharedKey,\n\t\twalletKeypair,\n\t\tpeerPublicKey: request.dappPublicKey,\n\t\tbridgeUrl: request.bridgeUrl\n\t}\n}\n\n/** Whether a parsed connect request has expired (wallet should reject/re-park). */\nexport function isConnectRequestExpired(request: ConnectRequestParams, now?: number): boolean {\n\treturn request.exp <= Math.floor((now ?? Date.now()) / 1000)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,SAAgB,qBAAqB,SAMQ;CAC5C,MAAM,cAAc,uBAAuB;CAC3C,MAAM,YAAY,SAAS,YAAY,EAAE,CAAC;CAC1C,MAAM,YAAY,SAAS;CAE3B,MAAM,MADS,KAAK,OAAO,QAAQ,OAAO,KAAK,IAAI,KAAK,GACvC,KAAK,QAAQ,cAAc;CAE5C,MAAM,YAAY,QAAQ,aAAA;CAW1B,OAAO;EACN,KAAK,gBAAgB;GATrB,QAAQ,QAAQ;GAChB,eAAe,YAAY;GAC3B;GACA;GACA;GACA,cAAc,QAAQ;GACtB;EAG0B,CAAC;EAC3B,SAAS;GACR;GACA;GACA,QAAQ,QAAQ;GAChB;GACA;GACA;EACD;CACD;AACD;;;;;;AAOA,SAAgB,gBACf,SACA,UACqB;CACrB,IAAI,SAAS,cAAc,QAAQ,WAClC,MAAM,IAAI,eAAe,oBAAoB,6CAA6C;CAE3F,MAAM,aAAgC;EACrC,QAAQ,QAAQ;EAChB,eAAe,QAAQ,YAAY;EACnC,iBAAiB,SAAS;EAC1B,WAAW,QAAQ;EACnB,WAAW,QAAQ;CACpB;CACA,IAAI,CAAC,cAAc;EAAE,SAAS,SAAS;EAAS;EAAY,WAAW,SAAS;CAAU,CAAC,GAC1F,MAAM,IAAI,eAAe,iBAAiB,mCAAmC;CAG9E,MAAM,YAAY,gBAAgB,SAAS,iBAAiB,QAAQ,YAAY,SAAS;CACzF,OAAO;EACN,SAAS,SAAS;EAClB;EACA,iBAAiB,SAAS;EAC1B,eAAe,QAAQ,YAAY;EACnC,QAAQ,QAAQ;EAChB,WAAW,QAAQ;CACpB;AACD;;;;;;;AAuBA,SAAgB,eACf,SACA,SACgB;CAChB,MAAM,gBAAgB,uBAAuB;CAC7C,MAAM,aAAgC;EACrC,QAAQ,QAAQ;EAChB,eAAe,QAAQ;EACvB,iBAAiB,cAAc;EAC/B,WAAW,QAAQ;EACnB,WAAW,QAAQ;CACpB;CACA,MAAM,YAAY,YAAY;EAAE,MAAM,QAAQ;EAAM;CAAW,CAAC;CAEhE,MAAM,YAAY,gBAAgB,QAAQ,eAAe,cAAc,SAAS;CAEhF,OAAO;EACN,UAAU;GACT,WAAW,QAAQ;GACnB,SAAS,QAAQ;GACjB,iBAAiB,cAAc;GAC/B;EACD;EACA;EACA;EACA,eAAe,QAAQ;EACvB,WAAW,QAAQ;CACpB;AACD;;AAGA,SAAgB,wBAAwB,SAA+B,KAAuB;CAC7F,OAAO,QAAQ,OAAO,KAAK,OAAO,OAAO,KAAK,IAAI,KAAK,GAAI;AAC5D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amadeus-protocol/wallet-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Shared dApp <-> wallet connection layer for Amadeus Protocol: BLS API-key tokens, transaction signing, message/connect signing, and the typed provider contract. One audited implementation for the wallet, the extension, and every dApp.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|