@sovereign-sdk/signers 0.2.0 → 0.2.1
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/README.md +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ const message = new Uint8Array([/* your message */]);
|
|
|
42
42
|
const signature = await signer.sign(message);
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
###
|
|
45
|
+
### Custom Signer Implementation
|
|
46
46
|
|
|
47
47
|
You can implement your own signer by implementing the `Signer` interface if your wallet is not currently supported.
|
|
48
48
|
|
|
@@ -51,7 +51,7 @@ import { Signer } from '@sovereign-sdk/signers';
|
|
|
51
51
|
|
|
52
52
|
class MySigner implements Signer {
|
|
53
53
|
publicKey() {
|
|
54
|
-
//
|
|
54
|
+
// retrieve the public key from your wallet
|
|
55
55
|
return new Uint8Array([/* your public key */]);
|
|
56
56
|
}
|
|
57
57
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sovereign-sdk/signers",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Signer interface and default implementations for use with Sovereign SDK applications",
|
|
5
5
|
"repository": "github:Sovereign-Labs/sovereign-sdk-web3-js",
|
|
6
6
|
"files": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@noble/hashes": "^1.5.0",
|
|
37
37
|
"@noble/secp256k1": "^2.3.0",
|
|
38
38
|
"ethers": "^6.15.0",
|
|
39
|
-
"@sovereign-sdk/utils": "^0.0.
|
|
39
|
+
"@sovereign-sdk/utils": "^0.0.4"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "tsup",
|