Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,18 @@ The optional parameters that the object takes in are: value, contractAbi, gas pr
}
```

### Signing Message
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @0binna-oss, this readme is not following the existing structure Can you update it ?


```javascript
// EVM (Ethereum, BSC, etc.)
const evmSignature = await signMessage("hello", "0xYourPrivateKey", "evm");

// Solana

const solanaKey = new Uint8Array([...]); // 64-byte Key

const solanaSignature = await signMessage("hello", solanaKey, "solana");
```
### Want to contribute?

Contributions are welcome! Kindly refer to the [contribution guidelines](CONTRIBUTING.md).
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const config = {
setupFiles: ['./jest.setup.js'],
};

module.exports = config;
module.exports = config;
4 changes: 4 additions & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const crypto = require('crypto');
const { TextEncoder, TextDecoder } = require('util');

global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;

Object.defineProperty(global, 'crypto', {
value: {
Expand Down
Loading