Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamalbuilds/lit-in-action
https://github.com/kamalbuilds/lit-in-action
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kamalbuilds/lit-in-action
- Owner: kamalbuilds
- Created: 2023-06-22T15:56:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-23T15:01:31.000Z (over 1 year ago)
- Last Synced: 2023-07-27T08:42:53.916Z (over 1 year ago)
- Language: JavaScript
- Size: 41 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Repository for Video Demo of Lit Actions
The `toSign` variable is an array of numbers that represent the ASCII codes for the characters in the string "Hello World". Each number in the array corresponds to a character in the string.
Here is a breakdown of how each number in the `toSign` array maps to a character in the "Hello World" string:
- 72 is the ASCII code for the character "H"
- 101 is the ASCII code for the character "e"
- 108 is the ASCII code for the character "l"
- 108 is the ASCII code for the character "l"
- 111 is the ASCII code for the character "o"
- 32 is the ASCII code for the space character " "
- 87 is the ASCII code for the character "W"
- 111 is the ASCII code for the character "o"
- 114 is the ASCII code for the character "r"
- 108 is the ASCII code for the character "l"
- 100 is the ASCII code for the character "d"So, when these numbers are converted to their corresponding characters using their ASCII codes, they form the string "Hello World".
The rest of the code defines an asynchronous `go` function that uses this `toSign` array to request a signature share from a Lit Node using the `LitActions.signEcdsa` method. The signature share is returned in the HTTP response from the node and stored in the `sigShare` variable.
PKP - https://explorer.litprotocol.com/pkps/13060450351822802328499309576153793306552432408244037559038668142453714032884
Lit Action Created - https://explorer.litprotocol.com/actions/QmSCxGRRznNDJRDri9qd3batstNiSj9xDHRTVhj8j2TKfo`npm install -g getlit`