-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a new simpler structure with test page, to be hosted on github
- Loading branch information
im2
committed
May 16, 2024
1 parent
2571dc9
commit b787170
Showing
9 changed files
with
7,482 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
```plaintext | ||
node_modules/ | ||
dist/ | ||
.env | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
#### `LICENSE` | ||
|
||
Choose a license, such as the MIT License: | ||
|
||
```plaintext | ||
MIT License | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# nostrjs | ||
|
||
This project provides modules for generating Nostr-compatible key pairs and creating deterministic SVG graphics based on the public key. | ||
|
||
## Modules | ||
|
||
### `nostrKeys.js` | ||
|
||
Contains functions to generate Nostr-compatible key pairs and derive public keys from private keys. | ||
|
||
### `key2svg.js` | ||
|
||
Contains functions to create deterministic SVG graphics based on a Nostr public key. | ||
|
||
## Installation | ||
|
||
To use these modules in a Node.js project, you can include them directly from the GitHub repository or use a package manager if published to npm. | ||
|
||
### Using GitHub URL in `package.json` | ||
|
||
```json | ||
{ | ||
"dependencies": { | ||
"nostrjs": "git+https://github.com/yourusername/nostrjs.git" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// nostrKeys.js | ||
// nostr.js | ||
|
||
// Convert Uint8Array to Hex String | ||
export function toHexString(byteArray) { | ||
|
Oops, something went wrong.