@thru/programs 0.2.35 → 0.2.37
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/passkey-manager/index.cjs +1 -3
- package/dist/passkey-manager/index.cjs.map +1 -1
- package/dist/passkey-manager/index.d.cts +2 -6
- package/dist/passkey-manager/index.d.ts +2 -6
- package/dist/passkey-manager/index.js +2 -3
- package/dist/passkey-manager/index.js.map +1 -1
- package/package.json +2 -2
- package/src/passkey-manager/context.ts +2 -8
- package/src/passkey-manager/index.ts +1 -1
|
@@ -200,10 +200,6 @@ declare function createCredentialLookupSeed(credentialId: Uint8Array): Promise<U
|
|
|
200
200
|
*/
|
|
201
201
|
declare function deriveCredentialLookupAddress(credentialId: Uint8Array, programAddress: string): Promise<Uint8Array>;
|
|
202
202
|
|
|
203
|
-
/**
|
|
204
|
-
* Default fee payer address (manager profile).
|
|
205
|
-
*/
|
|
206
|
-
declare const FEE_PAYER_ADDRESS = "taVcZv3wB2m-euBpMHm2rF9fQRY_fO_g7WdOjs70CxDh_S";
|
|
207
203
|
/**
|
|
208
204
|
* Build account context for passkey manager transactions.
|
|
209
205
|
* Handles account deduplication, sorting, and index lookup.
|
|
@@ -212,7 +208,7 @@ declare function buildAccountContext(params: {
|
|
|
212
208
|
walletAddress: string;
|
|
213
209
|
readWriteAccounts: Uint8Array[];
|
|
214
210
|
readOnlyAccounts: Uint8Array[];
|
|
215
|
-
feePayerAddress
|
|
211
|
+
feePayerAddress: string;
|
|
216
212
|
programAddress?: string;
|
|
217
213
|
}): AccountContext;
|
|
218
214
|
/**
|
|
@@ -357,4 +353,4 @@ declare function base64UrlToBytes(base64Url: string): Uint8Array;
|
|
|
357
353
|
declare function bytesToHex(bytes: Uint8Array): string;
|
|
358
354
|
declare function hexToBytes(hex: string): Uint8Array;
|
|
359
355
|
|
|
360
|
-
export { AUTHORITY_BYTES, AUTHORITY_RECORD_BYTES, AUTHORITY_TAG_PASSKEY, AUTHORITY_TAG_PUBKEY, type AccountContext, type AddAuthorityInstructionParams, type Authority, type AuthorityRecord, type CheckablePasskeyAuthorityIdentity, type CreateInstructionParams,
|
|
356
|
+
export { AUTHORITY_BYTES, AUTHORITY_RECORD_BYTES, AUTHORITY_TAG_PASSKEY, AUTHORITY_TAG_PUBKEY, type AccountContext, type AddAuthorityInstructionParams, type Authority, type AuthorityRecord, type CheckablePasskeyAuthorityIdentity, type CreateInstructionParams, INSTRUCTION_ADD_AUTHORITY, INSTRUCTION_CREATE, INSTRUCTION_REGISTER_CREDENTIAL, INSTRUCTION_REMOVE_AUTHORITY, INSTRUCTION_TRANSFER, INSTRUCTION_VALIDATE, LONG_LIVED_AUTHORITY_EXPIRY_SECONDS, P256_HALF_N, P256_N, PASSKEY_MANAGER_PROGRAM_ADDRESS, type ParsedAuthority, type PasskeyAuthorityIdentity, type PasskeyAuthorityTarget, type PasskeyDiscoverableSigningResult, type PasskeyMetadata, type PasskeyRegistrationResult, type PasskeySigningResult, type PreparePasskeyAuthorityTargetsOptions, type RegisterCredentialInstructionParams, type RemoveAuthorityInstructionParams, type TargetInstructionParams, type TransactionExecutionSummary, type TransferInstructionParams, VALIDATE_CHALLENGE_DOMAIN, type ValidateInstructionParams, type WalletAuthorities, type WalletSigner, arrayBufferToBase64Url, base64UrlToArrayBuffer, base64UrlToBytes, bigIntToBytesBE, buildAccountContext, buildAuthority, buildAuthorityRecord, buildPasskeyReadWriteAccounts, bytesEqual, bytesToBase64, bytesToBase64Url, bytesToBigIntBE, bytesToHex, compareBytes, concatenateInstructions, createAuthorityRecord, createCredentialLookupSeed, createSessionAuthorityRecord, createValidateChallenge, createWalletSeed, deriveCredentialLookupAddress, deriveWalletAddress, encodeAddAuthorityInstruction, encodeCreateInstruction, encodeInvokeInstruction, encodeLegacyAddAuthorityInstruction, encodeLegacyCreateInstruction, encodeRegisterCredentialInstruction, encodeRemoveAuthorityInstruction, encodeTransferInstruction, encodeValidateInstruction, fetchWalletNonce, findPasskeyAuthorityIndexForIdentity, findPasskeyAuthorityIndexInWalletData, formatAuthorityPubkey, hexToBytes, isPasskeyAuthorityCheckable, normalizeLowS, normalizeSignatureComponent, parseCredentialLookupWallet, parseDerSignature, parseWalletAuthorities, parseWalletNonce, preparePasskeyAuthorityTargets, resolvePasskeyAuthorityIndex, uniqueAccounts };
|
|
@@ -200,10 +200,6 @@ declare function createCredentialLookupSeed(credentialId: Uint8Array): Promise<U
|
|
|
200
200
|
*/
|
|
201
201
|
declare function deriveCredentialLookupAddress(credentialId: Uint8Array, programAddress: string): Promise<Uint8Array>;
|
|
202
202
|
|
|
203
|
-
/**
|
|
204
|
-
* Default fee payer address (manager profile).
|
|
205
|
-
*/
|
|
206
|
-
declare const FEE_PAYER_ADDRESS = "taVcZv3wB2m-euBpMHm2rF9fQRY_fO_g7WdOjs70CxDh_S";
|
|
207
203
|
/**
|
|
208
204
|
* Build account context for passkey manager transactions.
|
|
209
205
|
* Handles account deduplication, sorting, and index lookup.
|
|
@@ -212,7 +208,7 @@ declare function buildAccountContext(params: {
|
|
|
212
208
|
walletAddress: string;
|
|
213
209
|
readWriteAccounts: Uint8Array[];
|
|
214
210
|
readOnlyAccounts: Uint8Array[];
|
|
215
|
-
feePayerAddress
|
|
211
|
+
feePayerAddress: string;
|
|
216
212
|
programAddress?: string;
|
|
217
213
|
}): AccountContext;
|
|
218
214
|
/**
|
|
@@ -357,4 +353,4 @@ declare function base64UrlToBytes(base64Url: string): Uint8Array;
|
|
|
357
353
|
declare function bytesToHex(bytes: Uint8Array): string;
|
|
358
354
|
declare function hexToBytes(hex: string): Uint8Array;
|
|
359
355
|
|
|
360
|
-
export { AUTHORITY_BYTES, AUTHORITY_RECORD_BYTES, AUTHORITY_TAG_PASSKEY, AUTHORITY_TAG_PUBKEY, type AccountContext, type AddAuthorityInstructionParams, type Authority, type AuthorityRecord, type CheckablePasskeyAuthorityIdentity, type CreateInstructionParams,
|
|
356
|
+
export { AUTHORITY_BYTES, AUTHORITY_RECORD_BYTES, AUTHORITY_TAG_PASSKEY, AUTHORITY_TAG_PUBKEY, type AccountContext, type AddAuthorityInstructionParams, type Authority, type AuthorityRecord, type CheckablePasskeyAuthorityIdentity, type CreateInstructionParams, INSTRUCTION_ADD_AUTHORITY, INSTRUCTION_CREATE, INSTRUCTION_REGISTER_CREDENTIAL, INSTRUCTION_REMOVE_AUTHORITY, INSTRUCTION_TRANSFER, INSTRUCTION_VALIDATE, LONG_LIVED_AUTHORITY_EXPIRY_SECONDS, P256_HALF_N, P256_N, PASSKEY_MANAGER_PROGRAM_ADDRESS, type ParsedAuthority, type PasskeyAuthorityIdentity, type PasskeyAuthorityTarget, type PasskeyDiscoverableSigningResult, type PasskeyMetadata, type PasskeyRegistrationResult, type PasskeySigningResult, type PreparePasskeyAuthorityTargetsOptions, type RegisterCredentialInstructionParams, type RemoveAuthorityInstructionParams, type TargetInstructionParams, type TransactionExecutionSummary, type TransferInstructionParams, VALIDATE_CHALLENGE_DOMAIN, type ValidateInstructionParams, type WalletAuthorities, type WalletSigner, arrayBufferToBase64Url, base64UrlToArrayBuffer, base64UrlToBytes, bigIntToBytesBE, buildAccountContext, buildAuthority, buildAuthorityRecord, buildPasskeyReadWriteAccounts, bytesEqual, bytesToBase64, bytesToBase64Url, bytesToBigIntBE, bytesToHex, compareBytes, concatenateInstructions, createAuthorityRecord, createCredentialLookupSeed, createSessionAuthorityRecord, createValidateChallenge, createWalletSeed, deriveCredentialLookupAddress, deriveWalletAddress, encodeAddAuthorityInstruction, encodeCreateInstruction, encodeInvokeInstruction, encodeLegacyAddAuthorityInstruction, encodeLegacyCreateInstruction, encodeRegisterCredentialInstruction, encodeRemoveAuthorityInstruction, encodeTransferInstruction, encodeValidateInstruction, fetchWalletNonce, findPasskeyAuthorityIndexForIdentity, findPasskeyAuthorityIndexInWalletData, formatAuthorityPubkey, hexToBytes, isPasskeyAuthorityCheckable, normalizeLowS, normalizeSignatureComponent, parseCredentialLookupWallet, parseDerSignature, parseWalletAuthorities, parseWalletNonce, preparePasskeyAuthorityTargets, resolvePasskeyAuthorityIndex, uniqueAccounts };
|
|
@@ -7741,9 +7741,8 @@ function hexToBytes(hex) {
|
|
|
7741
7741
|
}
|
|
7742
7742
|
|
|
7743
7743
|
// src/passkey-manager/context.ts
|
|
7744
|
-
var FEE_PAYER_ADDRESS = "taVcZv3wB2m-euBpMHm2rF9fQRY_fO_g7WdOjs70CxDh_S";
|
|
7745
7744
|
function buildAccountContext(params) {
|
|
7746
|
-
const feePayerBytes = decodeAddress(params.feePayerAddress
|
|
7745
|
+
const feePayerBytes = decodeAddress(params.feePayerAddress);
|
|
7747
7746
|
const programBytes = decodeAddress(params.programAddress ?? PASSKEY_MANAGER_PROGRAM_ADDRESS);
|
|
7748
7747
|
const walletBytes = decodeAddress(params.walletAddress);
|
|
7749
7748
|
const readWriteBytes = uniqueAccounts([walletBytes, ...params.readWriteAccounts]).filter(
|
|
@@ -8036,6 +8035,6 @@ function bigIntToBytesBE(value, length) {
|
|
|
8036
8035
|
return out;
|
|
8037
8036
|
}
|
|
8038
8037
|
|
|
8039
|
-
export { AUTHORITY_BYTES, AUTHORITY_RECORD_BYTES, AUTHORITY_TAG_PASSKEY, AUTHORITY_TAG_PUBKEY,
|
|
8038
|
+
export { AUTHORITY_BYTES, AUTHORITY_RECORD_BYTES, AUTHORITY_TAG_PASSKEY, AUTHORITY_TAG_PUBKEY, INSTRUCTION_ADD_AUTHORITY, INSTRUCTION_CREATE, INSTRUCTION_REGISTER_CREDENTIAL, INSTRUCTION_REMOVE_AUTHORITY, INSTRUCTION_TRANSFER, INSTRUCTION_VALIDATE, LONG_LIVED_AUTHORITY_EXPIRY_SECONDS, P256_HALF_N, P256_N, PASSKEY_MANAGER_PROGRAM_ADDRESS, VALIDATE_CHALLENGE_DOMAIN, arrayBufferToBase64Url, base64UrlToArrayBuffer, base64UrlToBytes, bigIntToBytesBE, buildAccountContext, buildAuthority, buildAuthorityRecord, buildPasskeyReadWriteAccounts, bytesToBase64, bytesToBase64Url, bytesToBigIntBE, bytesToHex, concatenateInstructions, createAuthorityRecord, createCredentialLookupSeed, createSessionAuthorityRecord, createValidateChallenge, createWalletSeed, deriveCredentialLookupAddress, deriveWalletAddress, encodeAddAuthorityInstruction, encodeCreateInstruction, encodeInvokeInstruction, encodeLegacyAddAuthorityInstruction, encodeLegacyCreateInstruction, encodeRegisterCredentialInstruction, encodeRemoveAuthorityInstruction, encodeTransferInstruction, encodeValidateInstruction, fetchWalletNonce, findPasskeyAuthorityIndexForIdentity, findPasskeyAuthorityIndexInWalletData, formatAuthorityPubkey, hexToBytes, isPasskeyAuthorityCheckable, normalizeLowS, normalizeSignatureComponent, parseCredentialLookupWallet, parseDerSignature, parseWalletAuthorities, parseWalletNonce, preparePasskeyAuthorityTargets, resolvePasskeyAuthorityIndex };
|
|
8040
8039
|
//# sourceMappingURL=index.js.map
|
|
8041
8040
|
//# sourceMappingURL=index.js.map
|