Skip to content

Commit 481f08c

Browse files
committed
🚚 migrate to @get-smooth orga
1 parent aee38ba commit 481f08c

File tree

4 files changed

+13
-34
lines changed

4 files changed

+13
-34
lines changed

.npmrc

-1
This file was deleted.

README.md

+7-27
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,23 @@
11
# secp256r1 computation
22

3-
[![quality workflow](https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-computation/actions/workflows/quality.yml/badge.svg?branch=main)](https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-computation/actions/workflows/quality.yml)
4-
[![unit-test workflow](https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-computation/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-computation/actions/workflows/tests.yml)
5-
[![Publish package to GitHub Packages](https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-computation/actions/workflows/release-package.yml/badge.svg)](https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-computation/actions/workflows/release-package.yml)
3+
[![quality workflow](https://github.com/get-smooth/secp256r1-computation/actions/workflows/quality.yml/badge.svg?branch=main)](https://github.com/get-smooth/secp256r1-computation/actions/workflows/quality.yml)
4+
[![unit-test workflow](https://github.com/get-smooth/secp256r1-computation/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/get-smooth/secp256r1-computation/actions/workflows/tests.yml)
5+
[![Publish package to GitHub Packages](https://github.com/get-smooth/secp256r1-computation/actions/workflows/release-package.yml/badge.svg)](https://github.com/get-smooth/secp256r1-computation/actions/workflows/release-package.yml)
66

77
## Description
88

99
This library is a powerful tool designed to enhance the performance of ECDSA signing and verification processes. It achieves this by generating a precomputed table of 256 points on the secp256r1 elliptic curve from a given public key. By optimizing point multiplication operations, our package significantly accelerates cryptographic computations, thus facilitating less costly elliptic curve digital signature algorithms.
1010

1111
## Installation
1212

13-
To install the `secp256r1-computation` package, you need to add the Github registry to your npm configuration. To do so, you can use the following command in your terminal:
13+
To install the `secp256r1-computation` package, you can use the following command in your terminal:
1414

1515
```sh
16-
npm config set @0x90d2b2b7fb7599eebb6e7a32980857d8:registry=https://npm.pkg.github.com
17-
```
18-
19-
That will tell npm to use the Github registry for packages starting with `@0x90d2b2b7fb7599eebb6e7a32980857d8`.
20-
21-
Once the Github registry is set, you have to create a **classic** token on Github. To do so, go to your [Github settings](https://github.com/settings/tokens). The token must have the `read:packages` scope. Once you have created the token, you can use the following command in your terminal to authenticate to the Github registry:
22-
23-
```sh
24-
npm login --auth-type=legacy --registry=https://npm.pkg.github.com
25-
```
26-
27-
The username is your Github username and your password is the token you just created.
28-
29-
You are ready to install the package. To do so, you can use the following command in your terminal:
30-
31-
```sh
32-
npm install @0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-computation
16+
npm install @smoo.th/secp256r1-computation
3317
```
3418

3519
This will install the latest version of the package. Once the installation is complete, you can import the package into your project and start using it to generate precomputed points for the secp256r1 elliptic curve.
3620

37-
> ℹ️ Note that this package is not published on the npm registry. It is only available on GitHub Packages. This means that you need to be authenticated to GitHub Packages to install it. For more information, please refer to the [GitHub documentation](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#installing-a-package). We would be happy to deploy it on the npm registry if there is a need for it. Feel free to open an issue if you would like to see this package on the npm registry.
38-
39-
Here's the [page of the package on GitHub Packages](https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-computation/pkgs/npm/secp256r1-computation)
40-
4121
## Contributing
4222

4323
To contribute to this project, you need to have Node.js and npm installed on your system. You can download them from the official Node.js website: https://nodejs.org/
@@ -110,7 +90,7 @@ The returned value is a string containing the precomputation table in JSON forma
11090
Here's an example of how to use this library:
11191

11292
```ts
113-
import precomputedPoints from "@0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-computation";
93+
import precomputedPoints from "@smoo.th/secp256r1-computation";
11494

11595
const x = 0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdefn;
11696
const y = BitInt(42);
@@ -131,7 +111,7 @@ node cli.mjs <x> <y>
131111
If you want to use it globally on your laptop, you can use `npx` for that. Run the following command to run and install the script globally:
132112

133113
```sh
134-
npx @0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-computation <x> <y>
114+
npx @smoo.th/secp256r1-computation <x> <y>
135115
```
136116

137117
> 💡 You should probably set an zsh/bash/... alias for this command if you plan on using it often.

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-computation",
2+
"name": "@smoo.th/secp256r1-computation",
33
"version": "2.2.0",
44
"description": "This library boosts ECDSA performance by generating a precomputed table of 256 points on the secp256r1 curve from a public key. This optimization speeds up point multiplication, making elliptic curve digital signature algorithms more efficient.",
55
"source": "src/index.ts",
@@ -50,12 +50,12 @@
5050
],
5151
"repository": {
5252
"type": "git",
53-
"url": "[email protected]:0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-computation.git"
53+
"url": "[email protected]:get-smooth/secp256r1-computation.git"
5454
},
5555
"bugs": {
56-
"url": "https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-computation/issues"
56+
"url": "https://github.com/get-smooth/secp256r1-computation/issues"
5757
},
58-
"homepage": "https://github.com/0x90d2b2b7fb7599eebb6e7a32980857d8/secp256r1-computation#readme",
58+
"homepage": "https://github.com/get-smooth/secp256r1-computation#readme",
5959
"license": "MIT",
6060
"dependencies": {
6161
"@noble/curves": "^1.0.0"

0 commit comments

Comments
 (0)