-
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.
Merge pull request #3 from logical-mechanism/adding-bound-to-proof
Adding bound to proof
- Loading branch information
Showing
28 changed files
with
380 additions
and
887 deletions.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Tests | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
|
@@ -10,11 +10,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: aiken-lang/[email protected] | ||
- uses: aiken-lang/setup-aiken@v1 | ||
with: | ||
version: v1.0.29-alpha | ||
|
||
version: v1.1.0 | ||
- run: aiken fmt --check | ||
- run: aiken check -D | ||
- run: aiken build |
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,19 +1,23 @@ | ||
name = "logicalmechanism/5eed0e1f" | ||
version = "0.0.1" | ||
license = "GPL-3.0" | ||
name = "logical-mechanism/5eed0e1f" | ||
version = "0.1.0" | ||
compiler = "v1.1.0" | ||
plutus = "v3" | ||
license = "GPL-3.0-or-later" | ||
description = "Aiken contracts for project 'logicalmechanism/5eed0e1f'" | ||
|
||
[repository] | ||
user = "logicalmechanism" | ||
user = "logical-mechanism" | ||
project = "5eed0e1f" | ||
platform = "github" | ||
|
||
[[dependencies]] | ||
name = "logicalmechanism/stdlib" | ||
version = "plutus-v3" | ||
name = "aiken-lang/stdlib" | ||
version = "v2.0.0" | ||
source = "github" | ||
|
||
[[dependencies]] | ||
name = "logicalmechanism/assist" | ||
version = "plutus-v3" | ||
name = "logical-mechanism/assist" | ||
version = "v0.5.0" | ||
source = "github" | ||
|
||
[config] |
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
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,18 +1,15 @@ | ||
//// | ||
//// | ||
|
||
use aiken/builtin | ||
|
||
/// The generator of the G1 group of the BLS12-381 curve. | ||
/// This constant represents a fixed base point on the elliptic curve. | ||
pub const g1 = | ||
#<Bls12_381, G1>"97f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb" | ||
|
||
/// Represents the additive identity (zero) in the G1 group. | ||
pub const zero = | ||
#<Bls12_381, G1>"c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" | ||
|
||
/// This is mathematically equivalent to g^x mod q. | ||
pub fn pk(sk: Int) -> G1Element { | ||
builtin.bls12_381_g1_scalar_mul(sk, g1) | ||
} | ||
|
||
test pk_of_one_is_g1() { | ||
let u: G1Element = pk(1) | ||
u == g1 | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.