@twin.org/dlt-iota 0.0.3-next.13 → 0.0.3-next.15
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/es/index.js +7 -3
- package/dist/es/index.js.map +1 -1
- package/dist/es/iota.js +104 -89
- package/dist/es/iota.js.map +1 -1
- package/dist/es/iotaIdentityUtils.js +2 -4
- package/dist/es/iotaIdentityUtils.js.map +1 -1
- package/dist/es/iotaSmartContractUtils.js +2 -1
- package/dist/es/iotaSmartContractUtils.js.map +1 -1
- package/dist/es/models/IAdminCapFields.js.map +1 -1
- package/dist/es/models/IGasStationExecuteResponse.js.map +1 -1
- package/dist/es/models/IIotaControllerCapInfo.js.map +1 -1
- package/dist/es/models/IIotaResponseOptions.js.map +1 -1
- package/dist/es/models/IMigrationStateFields.js.map +1 -1
- package/dist/es/models/ISmartContractObject.js.map +1 -1
- package/dist/es/models/ITransactionSigner.js +2 -0
- package/dist/es/models/ITransactionSigner.js.map +1 -0
- package/dist/es/vaultJwkStorage.js +71 -0
- package/dist/es/vaultJwkStorage.js.map +1 -0
- package/dist/es/vaultJwtSigner.js +49 -0
- package/dist/es/vaultJwtSigner.js.map +1 -0
- package/dist/es/vaultSigner.js +60 -0
- package/dist/es/vaultSigner.js.map +1 -0
- package/dist/es/vaultTransactionSigner.js +74 -0
- package/dist/es/vaultTransactionSigner.js.map +1 -0
- package/dist/types/index.d.ts +7 -3
- package/dist/types/iota.d.ts +13 -28
- package/dist/types/iotaIdentityUtils.d.ts +2 -4
- package/dist/types/iotaSmartContractUtils.d.ts +0 -1
- package/dist/types/models/IAdminCapFields.d.ts +2 -2
- package/dist/types/models/IGasStationExecuteResponse.d.ts +1 -3
- package/dist/types/models/IIotaControllerCapInfo.d.ts +3 -6
- package/dist/types/models/IIotaResponseOptions.d.ts +1 -1
- package/dist/types/models/IMigrationStateFields.d.ts +2 -2
- package/dist/types/models/ISmartContractObject.d.ts +2 -2
- package/dist/types/models/ITransactionSigner.d.ts +27 -0
- package/dist/types/vaultJwkStorage.d.ts +50 -0
- package/dist/types/vaultJwtSigner.d.ts +26 -0
- package/dist/types/vaultSigner.d.ts +32 -0
- package/dist/types/vaultTransactionSigner.d.ts +39 -0
- package/docs/changelog.md +15 -0
- package/docs/reference/classes/Iota.md +30 -82
- package/docs/reference/classes/IotaIdentityUtils.md +2 -4
- package/docs/reference/classes/IotaSmartContractUtils.md +0 -1
- package/docs/reference/classes/VaultJwtSigner.md +71 -0
- package/docs/reference/classes/VaultSigner.md +106 -0
- package/docs/reference/classes/VaultTransactionSigner.md +122 -0
- package/docs/reference/index.md +4 -0
- package/docs/reference/interfaces/IAdminCapFields.md +2 -2
- package/docs/reference/interfaces/IGasStationExecuteResponse.md +1 -3
- package/docs/reference/interfaces/IIotaControllerCapInfo.md +3 -6
- package/docs/reference/interfaces/IIotaResponseOptions.md +1 -1
- package/docs/reference/interfaces/IMigrationStateFields.md +2 -2
- package/docs/reference/interfaces/ISmartContractObject.md +2 -2
- package/docs/reference/interfaces/ITransactionSigner.md +67 -0
- package/locales/en.json +5 -1
- package/package.json +3 -3
|
@@ -8,13 +8,13 @@ Generic interface representing the storage fields of a MigrationState object.
|
|
|
8
8
|
|
|
9
9
|
> **id**: `object`
|
|
10
10
|
|
|
11
|
-
The
|
|
11
|
+
The UID wrapper of the MigrationState object.
|
|
12
12
|
|
|
13
13
|
#### id
|
|
14
14
|
|
|
15
15
|
> **id**: `string`
|
|
16
16
|
|
|
17
|
-
The ID of the MigrationState object.
|
|
17
|
+
The hex string ID of the MigrationState object.
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -8,13 +8,13 @@ Base interface for all smart contract objects with versioning support.
|
|
|
8
8
|
|
|
9
9
|
> **id**: `object`
|
|
10
10
|
|
|
11
|
-
The
|
|
11
|
+
The UID wrapper of the smart contract object.
|
|
12
12
|
|
|
13
13
|
#### id
|
|
14
14
|
|
|
15
15
|
> **id**: `string`
|
|
16
16
|
|
|
17
|
-
The ID of the smart contract object.
|
|
17
|
+
The hex string ID of the smart contract object.
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Interface: ITransactionSigner
|
|
2
|
+
|
|
3
|
+
Interface for a transaction signer backed by a secure key store.
|
|
4
|
+
|
|
5
|
+
## Methods
|
|
6
|
+
|
|
7
|
+
### sign() {#sign}
|
|
8
|
+
|
|
9
|
+
> **sign**(`txDataBcs`): `Promise`\<`string`\>
|
|
10
|
+
|
|
11
|
+
Sign the BCS-encoded transaction data and return a serialized IOTA signature string.
|
|
12
|
+
|
|
13
|
+
#### Parameters
|
|
14
|
+
|
|
15
|
+
##### txDataBcs
|
|
16
|
+
|
|
17
|
+
`Uint8Array`
|
|
18
|
+
|
|
19
|
+
The raw transaction bytes to sign.
|
|
20
|
+
|
|
21
|
+
#### Returns
|
|
22
|
+
|
|
23
|
+
`Promise`\<`string`\>
|
|
24
|
+
|
|
25
|
+
The serialized signature string (scheme flag + signature + public key, base64-encoded).
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### publicKey() {#publickey}
|
|
30
|
+
|
|
31
|
+
> **publicKey**(): `Promise`\<`PublicKey`\>
|
|
32
|
+
|
|
33
|
+
Get the public key for this signer.
|
|
34
|
+
|
|
35
|
+
#### Returns
|
|
36
|
+
|
|
37
|
+
`Promise`\<`PublicKey`\>
|
|
38
|
+
|
|
39
|
+
The public key.
|
|
40
|
+
|
|
41
|
+
***
|
|
42
|
+
|
|
43
|
+
### iotaPublicKeyBytes() {#iotapublickeybytes}
|
|
44
|
+
|
|
45
|
+
> **iotaPublicKeyBytes**(): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
|
|
46
|
+
|
|
47
|
+
Get the IOTA-formatted public key bytes (scheme flag byte followed by the raw key bytes).
|
|
48
|
+
|
|
49
|
+
#### Returns
|
|
50
|
+
|
|
51
|
+
`Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\>
|
|
52
|
+
|
|
53
|
+
The IOTA public key bytes.
|
|
54
|
+
|
|
55
|
+
***
|
|
56
|
+
|
|
57
|
+
### keyId() {#keyid}
|
|
58
|
+
|
|
59
|
+
> **keyId**(): `string`
|
|
60
|
+
|
|
61
|
+
Get the key identifier for this signer.
|
|
62
|
+
|
|
63
|
+
#### Returns
|
|
64
|
+
|
|
65
|
+
`string`
|
|
66
|
+
|
|
67
|
+
The key identifier.
|
package/locales/en.json
CHANGED
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
"gasStationTransactionFailed": "The gas station transaction failed",
|
|
11
11
|
"dryRunFailed": "The dry run execution failed",
|
|
12
12
|
"fundingFailed": "Fund the address from faucet failed",
|
|
13
|
-
"faucetRateLimit": "Faucet rate limit exceeded"
|
|
13
|
+
"faucetRateLimit": "Faucet rate limit exceeded",
|
|
14
|
+
"missingPublicKey": "The public key is missing for vault key \"{keyName}\""
|
|
15
|
+
},
|
|
16
|
+
"vaultJwkStorage": {
|
|
17
|
+
"generateNotSupported": "Key generation is not supported; keys are managed by the vault"
|
|
14
18
|
},
|
|
15
19
|
"iotaIdentityUtils": {
|
|
16
20
|
"getControllerCapInfoFailed": "Getting the controller capability info for the identity failed",
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/dlt-iota",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.15",
|
|
4
4
|
"description": "IOTA distributed ledger utilities for clients, transactions, and contract operations.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/iotaledger/dlt.git",
|
|
7
|
+
"url": "git+https://github.com/iotaledger/twin-dlt.git",
|
|
8
8
|
"directory": "packages/dlt-iota"
|
|
9
9
|
},
|
|
10
10
|
"author": "cornel.filip@iota.org",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"dlt"
|
|
50
50
|
],
|
|
51
51
|
"bugs": {
|
|
52
|
-
"url": "git+https://github.com/iotaledger/dlt/issues"
|
|
52
|
+
"url": "git+https://github.com/iotaledger/twin-dlt/issues"
|
|
53
53
|
},
|
|
54
54
|
"homepage": "https://twindev.org"
|
|
55
55
|
}
|