Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
update license info
Browse files Browse the repository at this point in the history
  • Loading branch information
Mira Belenkiy committed Oct 20, 2023
1 parent ff0441f commit fdd9365
Show file tree
Hide file tree
Showing 59 changed files with 71 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/gofmt.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Copyright (c) 2023, Circle Internet Financial, LTD.
# All rights reserved
# SPDX-License-Identifier: Apache-2.0


name: Go-fmt
on: push
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) 2023, Circle Internet Financial, LTD.
# All rights reserved
# SPDX-License-Identifier: Apache-2.0

name: Go Test
on:
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Portions Copyright (c) 2023, Circle Internet Financial, LTD.
# All rights reserved
# SPDX-License-Identifier: Apache-2.0 AND MIT


MODULE = github.com/bnb-chain/tss-lib
PACKAGES = $(shell go list ./... | grep -v '/vendor/')
Expand Down
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# Multi-Party Threshold Signature Scheme
[![MIT licensed][1]][2] [![GoDoc][3]][4] [![Go Report Card][5]][6]

[1]: https://img.shields.io/badge/license-MIT-blue.svg
[2]: LICENSE
[3]: https://godoc.org/github.com/bnb-chain/tss-lib?status.svg
[4]: https://godoc.org/github.com/bnb-chain/tss-lib
[5]: https://goreportcard.com/badge/github.com/bnb-chain/tss-lib
[6]: https://goreportcard.com/report/github.com/bnb-chain/tss-lib
## License

Permissively MIT Licensed.
This work is dual-licensed under Apache 2.0 and MIT.
Portions contributed by Circle are licensed under Apache 2.0;
see SPDX-License-Identifier in the file headings.

Note! This is a library for developers. You may find a TSS tool that you can use with the Binance Chain CLI [here](https://docs.binance.org/tss.html).
`SPDX-License-Identifier: Apache-2.0 AND MIT`

## Note
This is a library for developers. You may find a TSS tool that you can use with the Binance Chain CLI [here](https://docs.binance.org/tss.html).

## Introduction
This is an implementation of multi-party {t,n}-threshold ECDSA (Elliptic Curve Digital Signature Algorithm) based on Gennaro and Goldfeder CCS 2018 [1] and EdDSA (Edwards-curve Digital Signature Algorithm) following a similar approach.
Expand Down
1 change: 1 addition & 0 deletions common/int.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//
// Portions Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0 AND MIT

package common

Expand Down
1 change: 1 addition & 0 deletions common/random.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//
// Portions Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0 AND MIT

package common

Expand Down
1 change: 1 addition & 0 deletions common/safe_prime.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//
// Portions Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0 AND MIT

package common

Expand Down
1 change: 1 addition & 0 deletions crypto/accmta/share_protocol.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0

package accmta

Expand Down
1 change: 1 addition & 0 deletions crypto/accmta/share_protocol_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0

package accmta_test

Expand Down
8 changes: 5 additions & 3 deletions crypto/paillier/paillier.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
// This file is part of Binance. The full Binance copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.

//
// Portions Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0 AND MIT
//
// The Paillier Crypto-system is an additive crypto-system. This means that given two ciphertexts, one can perform operations equivalent to adding the respective plain texts.
// Additionally, Paillier Crypto-system supports further computations:
//
Expand All @@ -13,8 +17,6 @@
//
// Implementation adheres to GG18Spec (6)
//
// Portions Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved

package paillier

Expand Down
1 change: 1 addition & 0 deletions crypto/paillier/paillier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//
// Portions Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0 AND MIT

package paillier_test

Expand Down
3 changes: 2 additions & 1 deletion crypto/zkproofs/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Copyright (c) 2023, Circle Internet Financial, LTD.
All rights reserved
All rights reserved.
SPDX-License-Identifier: Apache-2.0

# Go package crypto/zkproofs
This package contains various zero knowledge proofs of knowledge. The source of these
Expand Down
1 change: 1 addition & 0 deletions crypto/zkproofs/aff_g_inv_proof.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//
// This file modifies the proof aff-g from CGG21 Section 6.2 Figure 15.
// the prover has secret input (x, y, rho, rhoy) while the
Expand Down
1 change: 1 addition & 0 deletions crypto/zkproofs/aff_g_proof.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//
// This file implements proof aff-g from CGG21 Section 6.2 Figure 15.
// Tbe prover has secret input (x, y, rho, rhoy) and
Expand Down
1 change: 1 addition & 0 deletions crypto/zkproofs/aff_g_proof_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//
package zkproofs_test

Expand Down
1 change: 1 addition & 0 deletions crypto/zkproofs/aff_p_proof.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//
// This file implements proof aff-p from CGG21 Appendix C.3 Figure 26.
// The prover has secret input (x, y, rho, rhox, rhoy) and the
Expand Down
1 change: 1 addition & 0 deletions crypto/zkproofs/aff_p_proof_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//
package zkproofs_test

Expand Down
1 change: 1 addition & 0 deletions crypto/zkproofs/dec_proof.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//
// This file implements proof dec in CGG21 Appendix C6 Figure 30.
// The prover has secret input (y, rho) and
Expand Down
1 change: 1 addition & 0 deletions crypto/zkproofs/dec_proof_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//
package zkproofs_test

Expand Down
1 change: 1 addition & 0 deletions crypto/zkproofs/enc_proof.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//
// This file implements proof enc from CGG21 Section 6.1 Figure 14.
// The prover has secret input (k, rho) and the
Expand Down
1 change: 1 addition & 0 deletions crypto/zkproofs/enc_proof_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//
package zkproofs_test

Expand Down
1 change: 1 addition & 0 deletions crypto/zkproofs/logstar_proof.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//
// This file implements proof log* from CGG21 Appendix C.2 Figure 25.
// The Prover has secret input (x, rho) and
Expand Down
1 change: 1 addition & 0 deletions crypto/zkproofs/logstar_proof_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//
package zkproofs_test

Expand Down
1 change: 1 addition & 0 deletions crypto/zkproofs/mul_proof.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//
// This file implements proof mul from CGG21 Appendix C.6 Figure 29.
// The prover has secret input (x, rho, rhox) and
Expand Down
1 change: 1 addition & 0 deletions crypto/zkproofs/mul_proof_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//
package zkproofs_test

Expand Down
1 change: 1 addition & 0 deletions crypto/zkproofs/mulstar_proof.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//
// This file implements proof mul* from CGG21 Appendix C.6 Figure 31.
// The prover has secret (x, rho) and
Expand Down
1 change: 1 addition & 0 deletions crypto/zkproofs/mulstar_proof_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//
package zkproofs_test

Expand Down
1 change: 1 addition & 0 deletions crypto/zkproofs/zkproofs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//
package zkproofs

Expand Down
1 change: 1 addition & 0 deletions crypto/zkproofs/zkproofs_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//
package zkproofs_test

Expand Down
1 change: 1 addition & 0 deletions ecdsa/accsigning/debuglog.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//

package accsigning
Expand Down
1 change: 1 addition & 0 deletions ecdsa/accsigning/ecdsa-accsigning.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ecdsa/accsigning/finalize.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//

package accsigning
Expand Down
1 change: 1 addition & 0 deletions ecdsa/accsigning/local_party.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//
// Portions Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0 AND MIT
//

package accsigning
Expand Down
1 change: 1 addition & 0 deletions ecdsa/accsigning/messages.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
package accsigning

import (
Expand Down
1 change: 1 addition & 0 deletions ecdsa/accsigning/round_1.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//
// Portions Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0 AND MIT
//

package accsigning
Expand Down
1 change: 1 addition & 0 deletions ecdsa/accsigning/round_2.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//

package accsigning
Expand Down
1 change: 1 addition & 0 deletions ecdsa/accsigning/round_3.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//

package accsigning
Expand Down
1 change: 1 addition & 0 deletions ecdsa/accsigning/round_4.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//

package accsigning
Expand Down
1 change: 1 addition & 0 deletions ecdsa/accsigning/round_5.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//

package accsigning
Expand Down
1 change: 1 addition & 0 deletions ecdsa/accsigning/round_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//

package accsigning
Expand Down
1 change: 1 addition & 0 deletions ecdsa/accsigning/round_test_util.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//

package accsigning
Expand Down
1 change: 1 addition & 0 deletions ecdsa/accsigning/rounds.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//
// Portions Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0 AND MIT
//

package accsigning
Expand Down
1 change: 1 addition & 0 deletions ecdsa/cggplus/ecdsa-cggplus.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ecdsa/cggplus/finalize.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//

package cggplus
Expand Down
1 change: 1 addition & 0 deletions ecdsa/cggplus/local_party.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//
// Portions Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0 AND MIT
//

package cggplus
Expand Down
1 change: 1 addition & 0 deletions ecdsa/cggplus/messages.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
package cggplus

import (
Expand Down
1 change: 1 addition & 0 deletions ecdsa/cggplus/round_1.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//
// Portions Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0 AND MIT
//

package cggplus
Expand Down
1 change: 1 addition & 0 deletions ecdsa/cggplus/round_2.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//

package cggplus
Expand Down
1 change: 1 addition & 0 deletions ecdsa/cggplus/round_3.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//

package cggplus
Expand Down
1 change: 1 addition & 0 deletions ecdsa/cggplus/round_4.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2023, Circle Internet Financial, LTD.
// All rights reserved
// SPDX-License-Identifier: Apache-2.0
//

package cggplus
Expand Down
Loading

0 comments on commit fdd9365

Please sign in to comment.