Skip to content

Commit

Permalink
Change org name
Browse files Browse the repository at this point in the history
  • Loading branch information
dankelleher committed Sep 18, 2024
1 parent 136dcdb commit 011d223
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ and can be extended to others.
## Install

```sh
npm install @identity.com/prove-solana-wallet
npm install @civic/prove-solana-wallet
```

or

```sh
yarn add @identity.com/prove-solana-wallet
yarn add @civic/prove-solana-wallet
```

## Usage
Expand All @@ -24,14 +24,14 @@ yarn add @identity.com/prove-solana-wallet

prover side:
```js
const {create} = require('@identity.com/prove-solana-wallet');
const {create} = require('@civic/prove-solana-wallet');
const nonce = `${new Date().getTime()}`;
const proof = await create(myKeypair, nonce);
```

Verifier side:
```js
const {verify} = require('@identity.com/prove-solana-wallet');
const {verify} = require('@civic/prove-solana-wallet');
const message = timestamp;
verify(expectedPublicKey, proof, message);
```
Expand All @@ -40,13 +40,13 @@ verify(expectedPublicKey, proof, message);

prover side:
```js
const {proveTransaction} = require('@identity.com/prove-solana-wallet');
const {proveTransaction} = require('@civic/prove-solana-wallet');
const proof = await proveTransaction(myKeypair);
```

Verifier side:
```js
const {verifyTransaction} = require('@identity.com/prove-solana-wallet');
const {verifyTransaction} = require('@civic/prove-solana-wallet');
await verifyTransaction(proof, expectedPublicKey);
```

Expand All @@ -55,7 +55,7 @@ See [here](https://github.com/project-serum/sol-wallet-adapter) for more details

prover side:
```js
const {proveTransaction} = require('@identity.com/prove-solana-wallet');
const {proveTransaction} = require('@civic/prove-solana-wallet');
import Wallet from "@project-serum/sol-wallet-adapter";

const providerUrl = 'https://www.sollet.io';
Expand All @@ -70,7 +70,7 @@ wallet.on('connect', async (publicKey) => {

Verifier side:
```js
const {verifyTransaction} = require('@identity.com/prove-solana-wallet');
const {verifyTransaction} = require('@civic/prove-solana-wallet');
await verifyTransaction(proof, expectedPublicKey);
```

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"singleQuote": true,
"trailingComma": "es5"
},
"name": "@identity.com/prove-solana-wallet",
"author": "Daniel Kelleher <daniel@identity.com>",
"name": "@civic/prove-solana-wallet",
"author": "Daniel Kelleher <daniel@civic.com>",
"description": "Prove ownership of a Solana wallet.",
"module": "dist/prove-solana-wallet.esm.js",
"size-limit": [
Expand All @@ -60,7 +60,7 @@
"typescript": "^4.3.5"
},
"dependencies": {
"@solana/web3.js": "^1.63.1",
"@solana/web3.js": "^1.95.3",
"bs58": "^4.0.1",
"tweetnacl": "^1.0.3"
}
Expand Down

0 comments on commit 011d223

Please sign in to comment.