|
6 | 6 | Keypair, |
7 | 7 | LAMPORTS_PER_SOL, |
8 | 8 | PublicKey, |
9 | | -// SIGNATURE_LENGTH_IN_BYTES, |
10 | 9 | SystemProgram, |
11 | | -// Transaction, |
12 | 10 | } from '@solana/web3.js'; |
13 | 11 | import { |
14 | 12 | airdrop, |
@@ -126,22 +124,21 @@ describe('transfers', function () { |
126 | 124 |
|
127 | 125 | it.skip('should sign a transaction from a DID with a second key', async () => { |
128 | 126 | // the cryptid client for device 1 that will add the new key |
129 | | - // const cryptidForDevice1 = cryptid; |
| 127 | + // const cryptidForDevice1 = cryptid; |
130 | 128 |
|
131 | 129 | // the new key that will be added to the DID |
132 | 130 | const device2Key = Keypair.generate(); |
133 | | - // const alias = 'device2'; |
| 131 | + // const alias = 'device2'; |
134 | 132 |
|
135 | 133 | // airdrop to device2 key to cover fees for the transfer only |
136 | 134 | await airdrop(connection, device2Key.publicKey, 10_000); |
137 | 135 |
|
138 | 136 | // add the new key and create a cryptid client for device 2 |
139 | | - // await cryptidForDevice1.addKey(device2Key.publicKey, alias); |
| 137 | + // await cryptidForDevice1.addKey(device2Key.publicKey, alias); |
140 | 138 | // TODO: Challenge: Replace this with a did:sol library call for addKey |
141 | | - // const id = DidSolIdentifier.parse(cryptid.did); |
142 | | - // const service = await DidSolService.build(id); |
143 | | - // service.addVerificationMethod(...); |
144 | | - |
| 139 | + // const id = DidSolIdentifier.parse(cryptid.did); |
| 140 | + // const service = await DidSolService.build(id); |
| 141 | + // service.addVerificationMethod(...); |
145 | 142 | const cryptidForDevice2 = await build(did, device2Key, { |
146 | 143 | connection, |
147 | 144 | waitForConfirmation: true, |
@@ -237,8 +234,7 @@ describe('transfers', function () { |
237 | 234 | await airdrop(connection, controlledDIDKey.publicKey, 10_000); |
238 | 235 |
|
239 | 236 | // add the controller to the controlled DID (this anchors the controlled DID) |
240 | | - // await controlledCryptid.addController(did); |
241 | | - |
| 237 | + // await controlledCryptid.addController(did); |
242 | 238 | balances = await new Balances(connection).register( |
243 | 239 | cryptidAddress, // controller cryptid |
244 | 240 | controlledCryptidAddress, // controlled cryptid |
|
0 commit comments