diff --git a/Cargo.toml b/Cargo.toml index 48d08c8..e5bf074 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,7 @@ name = "bls-signatures-bindings" version = "0.1.0" edition = "2021" license = "MIT AND Apache-2.0" +repository = "https://github.com/gluwa/bls-signatures-bindings" [lib] crate-type = ["cdylib"] diff --git a/README.md b/README.md index d94a597..cf24a73 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,13 @@ Creates bindings for https://github.com/gluwa/bls-signatures. ## Installation ```bash -npm install @gluwa/bls-signatures-bindings +npm install bls-signatures-bindings ``` ## Usage Import necessary structures from the package and use them as needed. ```typescript -import { WasmPrivateKey } from 'bls_signatures_bindings'; +import { WasmPrivateKey } from 'bls-signatures-bindings'; async function main() { const seed = new Uint8Array(32); diff --git a/pkg/README.md b/pkg/README.md index d94a597..6bf70f2 100644 --- a/pkg/README.md +++ b/pkg/README.md @@ -4,7 +4,7 @@ Creates bindings for https://github.com/gluwa/bls-signatures. ## Installation ```bash -npm install @gluwa/bls-signatures-bindings +npm install bls-signatures-bindings ``` ## Usage diff --git a/pkg/package.json b/pkg/package.json index ab6f305..4ab4bea 100644 --- a/pkg/package.json +++ b/pkg/package.json @@ -6,6 +6,10 @@ "description": "Bindings for no_std Aggregate BLS Signatures", "version": "0.1.0", "license": "MIT AND Apache-2.0", + "repository": { + "type": "git", + "url": "https://github.com/gluwa/bls-signatures-bindings" + }, "files": [ "bls_signatures_bindings_bg.wasm", "bls_signatures_bindings.js", diff --git a/ts-example/package-lock.json b/ts-example/package-lock.json index 1760664..5b8aaae 100644 --- a/ts-example/package-lock.json +++ b/ts-example/package-lock.json @@ -8,6 +8,9 @@ "name": "ts-project", "version": "1.0.0", "license": "ISC", + "dependencies": { + "bls-signatures-bindings": "^0.1.0" + }, "devDependencies": { "@types/node": "^22.10.1", "typescript": "^5.7.2", @@ -52,6 +55,11 @@ "node": ">=10" } }, + "node_modules/bls-signatures-bindings": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/bls-signatures-bindings/-/bls-signatures-bindings-0.1.0.tgz", + "integrity": "sha512-4U/xpm19SZvqJt9Bvqqfi6bgyHaJGyaJ+FJwIXox93n885lNPszhNN+7KKF6tgGYYOUGl8K0bYEsb5yWxKx1EA==" + }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", diff --git a/ts-example/package.json b/ts-example/package.json index efb85b3..3a5d6de 100644 --- a/ts-example/package.json +++ b/ts-example/package.json @@ -15,5 +15,8 @@ "@types/node": "^22.10.1", "typescript": "^5.7.2", "wasm-pack": "^0.13.1" + }, + "dependencies": { + "bls-signatures-bindings": "^0.1.0" } } diff --git a/ts-example/pkg b/ts-example/pkg deleted file mode 120000 index c012698..0000000 --- a/ts-example/pkg +++ /dev/null @@ -1 +0,0 @@ -../pkg/ \ No newline at end of file diff --git a/ts-example/src/test.ts b/ts-example/src/test.ts index 6f0f2c9..f64137f 100644 --- a/ts-example/src/test.ts +++ b/ts-example/src/test.ts @@ -1,4 +1,4 @@ -import { WasmPrivateKey } from '../pkg/bls_signatures_bindings.js'; +import { WasmPrivateKey } from 'bls-signatures-bindings'; async function main() { const seed = new Uint8Array(32);