Skip to content

Commit

Permalink
Fixes (#1)
Browse files Browse the repository at this point in the history
* Fixed dependency

* Cargo fix

* cargo check

* Increase version
  • Loading branch information
SilkovAlexander authored Feb 29, 2024
1 parent 0b07101 commit ab3db99
Show file tree
Hide file tree
Showing 9 changed files with 219 additions and 158 deletions.
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[package]
edition = '2018'
name = 'ever_bls_lib'
version = '0.1.83'
name = 'gosh_bls_lib'
version = '0.2.0'

[dependencies]
anyhow = "1.0.80"
criterion = '0.3'
failure = '0.1'
rand = '0.7'
rand_chacha = '0.2'
blst = { features = [ 'portable' ], version = '0.3.5' }
ton_types = { git = 'https://github.com/tonlabs/ever-types.git', tag = '2.0.19' }
tvm_types = { git = 'https://github.com/tvmlabs/tvm-types.git', tag = '3.0.1' }

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ton-bls-lib
# gosh-bls-lib

This library is developed to handle BLS signature for TON blockchain. It is responsible for generation BLS keys and provides basic signing/verification functionality. Also it provides aggregation functionality for public keys and signatures.
Basic BLS functionality is provided by [blst](https://github.com/supranational/blst) library. _ton-bls-lib_ exploits it and adds additional infrastracture and extra data parsing.
This library is developed to handle BLS signature for GOSH blockchain. It is responsible for generation BLS keys and provides basic signing/verification functionality. Also it provides aggregation functionality for public keys and signatures.
Basic BLS functionality is provided by [blst](https://github.com/supranational/blst) library. _gosh-bls-lib_ exploits it and adds additional infrastracture and extra data parsing.

Raw BLS signature is a byte array of length 96 (or 48) bytes. Each BLS signature is produced initially by some node with unique index _node_index_. Also there is some fixed number of nodes for current validation session. Node concatenates BLS signature with _node_index_ and _total_number_of_nodes_. So it looks as follows.

Expand Down Expand Up @@ -29,7 +29,7 @@ When masterchain validator gets such aggregated BLS signature in broadcast prote

## API description

Below there are constants and functions that are provided by _ton-bls-lib_.
Below there are constants and functions that are provided by _gosh-bls-lib_.

```rust
pub const BLS_SECRET_KEY_LEN: usize = 32;
Expand Down
Loading

0 comments on commit ab3db99

Please sign in to comment.