@proton/js
Advanced tools
Comparing version 25.0.37 to 25.0.39
@@ -120,2 +120,10 @@ import { AbiProvider, ActionSerializerType, AuthorityProvider, BinaryAbi, CachedAbi, ContextFreeGroupCallback, Query, QueryConfig, SignatureProvider, TransactConfig, Transaction, TransactResult } from './types'; | ||
sha256Digest(array: Uint8Array | ArrayBuffer): Promise<Uint8Array>; | ||
matchRsaKeyToSignature({ actor, transaction }: { | ||
actor: string; | ||
transaction: Transaction; | ||
}): Promise<boolean>; | ||
matchEthKeyToSignature({ actor, transaction }: { | ||
actor: string; | ||
transaction: Transaction; | ||
}): Promise<boolean>; | ||
matchWaKeyToSignature({ signature, key, digest }: { | ||
@@ -122,0 +130,0 @@ signature: string; |
@@ -278,1 +278,2 @@ /** | ||
export declare const serializeQuery: (buffer: SerialBuffer, query: Query) => void; | ||
export declare function b64tob64u(a: string): string; |
import { AbiProvider, AuthorityProvider, AuthorityProviderArgs, BinaryAbi, TransactResult } from '../api/types'; | ||
import { isLightKYCVerified, getValidKycProviders } from './proton'; | ||
import { isLightKYCVerified, getValidKycProviders, fetchCredentials } from './proton'; | ||
import { Authorization } from '../api/serialize'; | ||
@@ -90,3 +90,4 @@ import { GetAccountResult, GetBlockHeaderStateResult, GetBlockInfoResult, GetBlockResult, GetInfoResult, GetActivatedProtocolFeaturesResult, GetAbiResult, GetRawCodeAndAbiResult, GetRawAbiResult, GetCodeResult, PushTransactionArgs, AbiBinToJsonResult, AbiJsonToBinResult, DBSizeGetResult, GetAccountsByAuthorizersResult, GetActivatedProtocolFeaturesParams, GetCodeHashResult, GetCurrencyStatsResult, GetProducerScheduleResult, GetProducersResult, GetScheduledTransactionsResult, GetTableByScopeResult, GetTableRowsResult, ReadOnlyTransactResult, TraceApiGetBlockResult } from './types'; | ||
getValidKycProviders: typeof getValidKycProviders; | ||
fetchCredentials: typeof fetchCredentials; | ||
} | ||
export { RpcError } from './error'; |
import type { JsonRpc } from './index'; | ||
import type { UserInfo } from './types'; | ||
import type { UserInfo, WaKey } from './types'; | ||
/** | ||
@@ -14,1 +14,2 @@ * Checks blockchain for a list of kycproviders, and sorts through the ones that are blacklisted. | ||
export declare function isLightKYCVerified(this: JsonRpc, account: UserInfo[] | string): Promise<UserInfo[]>; | ||
export declare function fetchCredentials(this: JsonRpc, actor: string): Promise<WaKey[]>; |
@@ -663,1 +663,25 @@ /** | ||
}; | ||
export interface RsaKey { | ||
modulus: string; | ||
exponent: string; | ||
} | ||
export interface WaKey { | ||
index?: number; | ||
account?: string; | ||
key_name?: string; | ||
key: { | ||
key: [ | ||
string, | ||
string | RsaKey | ||
]; | ||
user_presence: number; | ||
rpid: string; | ||
}; | ||
nonce?: number; | ||
fullKey: string; | ||
isAccountPerm?: boolean; | ||
isEcc?: boolean; | ||
isRsa?: boolean; | ||
isEth?: boolean; | ||
credential_id?: string; | ||
} |
{ | ||
"name": "@proton/js", | ||
"version": "25.0.37", | ||
"version": "25.0.39", | ||
"description": "Javascript Interface to the Proton Blockchain", | ||
@@ -33,4 +33,6 @@ "module": "dist/index.js", | ||
"@bloks/constants": "^25.0.37", | ||
"base64url": "^3.0.1", | ||
"cross-fetch": "^3.1.4", | ||
"elliptic": "^6.5.4", | ||
"eth-sig-util": "^3.0.1", | ||
"fast-text-encoding": "^1.0.3", | ||
@@ -94,3 +96,3 @@ "hash.js": "1.1.7", | ||
}, | ||
"gitHead": "6c132a63b173db768ec3caf5bba1a5e41a850693" | ||
"gitHead": "e8b06d2523a6051ea48f72f9724945c6829e9ecf" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1708193
16000
9
+ Addedbase64url@^3.0.1
+ Addedeth-sig-util@^3.0.1
+ Added@types/bn.js@4.11.6(transitive)
+ Added@types/node@22.9.3(transitive)
+ Added@types/pbkdf2@3.1.2(transitive)
+ Added@types/secp256k1@4.0.6(transitive)
+ Addedbase-x@3.0.10(transitive)
+ Addedbase64url@3.0.1(transitive)
+ Addedblakejs@1.2.1(transitive)
+ Addedbn.js@5.2.1(transitive)
+ Addedbrowserify-aes@1.2.0(transitive)
+ Addedbs58@4.0.1(transitive)
+ Addedbs58check@2.1.2(transitive)
+ Addedbuffer-xor@1.0.3(transitive)
+ Addedcipher-base@1.0.5(transitive)
+ Addedcreate-hash@1.2.0(transitive)
+ Addedcreate-hmac@1.1.7(transitive)
+ Addedeth-sig-util@3.0.1(transitive)
+ Addedethereum-cryptography@0.1.3(transitive)
+ Addedethereumjs-abi@0.6.8(transitive)
+ Addedethereumjs-util@5.2.16.2.1(transitive)
+ Addedethjs-util@0.1.6(transitive)
+ Addedevp_bytestokey@1.0.3(transitive)
+ Addedhash-base@3.1.0(transitive)
+ Addedis-hex-prefixed@1.0.0(transitive)
+ Addedkeccak@3.0.4(transitive)
+ Addedmd5.js@1.3.5(transitive)
+ Addednode-addon-api@2.0.25.1.0(transitive)
+ Addednode-gyp-build@4.8.4(transitive)
+ Addedpbkdf2@3.1.2(transitive)
+ Addedrandombytes@2.1.0(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedripemd160@2.0.2(transitive)
+ Addedrlp@2.2.7(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedscrypt-js@3.0.1(transitive)
+ Addedsecp256k1@4.0.4(transitive)
+ Addedsetimmediate@1.0.5(transitive)
+ Addedsha.js@2.4.11(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedstrip-hex-prefix@1.0.0(transitive)
+ Addedtweetnacl@1.0.3(transitive)
+ Addedtweetnacl-util@0.15.1(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addedutil-deprecate@1.0.2(transitive)