-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
3,113 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@dfinity/agent", | ||
"version": "0.19.3", | ||
"version": "0.19.3-react-native", | ||
"author": "DFINITY Stiftung <[email protected]>", | ||
"license": "Apache-2.0", | ||
"description": "JavaScript and TypeScript library to interact with the Internet Computer", | ||
|
@@ -49,8 +49,10 @@ | |
"tslint": "tslint --project tsconfig.json --config tslint.json" | ||
}, | ||
"peerDependencies": { | ||
"@dfinity/candid": "^0.19.3", | ||
"@dfinity/principal": "^0.19.3" | ||
"@dfinity/candid": "^0.19.3-react-native", | ||
"@dfinity/principal": "^0.19.3-react-native", | ||
"@dfinity/bls-verify": "0.19.3-react-native", | ||
"@noble/curves": "file:noble-curves-1.2.0.tgz" | ||
}, | ||
"dependencies": { | ||
"@noble/curves": "^1.2.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@dfinity/assets", | ||
"version": "0.19.3", | ||
"version": "0.19.3-react-native", | ||
"author": "DFINITY Stiftung <[email protected]>", | ||
"license": "Apache-2.0", | ||
"description": "JavaScript and TypeScript library to manage assets on the Internet Computer", | ||
|
@@ -49,8 +49,8 @@ | |
"test:coverage": "jest --verbose --collectCoverage" | ||
}, | ||
"peerDependencies": { | ||
"@dfinity/agent": "^0.19.3", | ||
"@dfinity/principal": "^0.19.3", | ||
"@dfinity/agent": "^0.19.3-react-native", | ||
"@dfinity/principal": "^0.19.3-react-native", | ||
"@noble/hashes": "^1.3.1" | ||
}, | ||
"dependencies": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@dfinity/auth-client", | ||
"version": "0.19.3", | ||
"version": "0.19.3-react-native", | ||
"author": "DFINITY Stiftung <[email protected]>", | ||
"license": "Apache-2.0", | ||
"description": "JavaScript and TypeScript library to provide a simple integration with an IC Internet Identity", | ||
|
@@ -46,9 +46,9 @@ | |
"test:coverage": "jest --verbose --collectCoverage" | ||
}, | ||
"peerDependencies": { | ||
"@dfinity/agent": "^0.19.3", | ||
"@dfinity/identity": "^0.19.3", | ||
"@dfinity/principal": "^0.19.3" | ||
"@dfinity/agent": "^0.19.3-react-native", | ||
"@dfinity/identity": "^0.19.3-react-native", | ||
"@dfinity/principal": "^0.19.3-react-native" | ||
}, | ||
"dependencies": { | ||
"idb": "^7.0.2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@dfinity/bls-verify", | ||
"version": "0.19.3", | ||
"version": "0.19.3-react-native", | ||
"author": "DFINITY Stiftung <[email protected]>", | ||
"license": "Apache-2.0", | ||
"description": "bls verification strategy in JavaScript", | ||
|
@@ -13,7 +13,6 @@ | |
"bugs": { | ||
"url": "https://github.com/dfinity/agent-js/issues" | ||
}, | ||
"type": "module", | ||
"keywords": [ | ||
"internet computer", | ||
"ic", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { toHex } from './utils'; | ||
import { bls12_381 as bls } from '@noble/curves/bls12-381'; | ||
|
||
export const blsVerify = async ( | ||
primaryKey: Uint8Array | string, | ||
signature: Uint8Array | string, | ||
message: Uint8Array | string, | ||
): Promise<boolean> => { | ||
const { verifyShortSignature } = (await import('./verifyShortSignature')).default() as any; | ||
|
||
const pk = typeof primaryKey === 'string' ? primaryKey : toHex(primaryKey); | ||
const sig = typeof signature === 'string' ? signature : toHex(signature); | ||
const msg = typeof message === 'string' ? message : toHex(message); | ||
return bls.verifyShortSignature(sig, msg, pk); | ||
return verifyShortSignature(sig, msg, pk); | ||
}; |
Oops, something went wrong.