Skip to content
Merged
138 changes: 80 additions & 58 deletions CHANGELOG.md

Large diffs are not rendered by default.

140 changes: 68 additions & 72 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,74 +1,70 @@
{
"packages": [
"packages/*"
],
"npmClient": "yarn",
"version": "1.2.6",
"changelogPreset": {
"name": "conventionalcommits",
"issuePrefixes": [
"#"
],
"issueUrlFormat": "{{host}}/{{owner}}/{{repository}}/issues/{{id}}",
"commitUrlFormat": "{{host}}/{{owner}}/{{repository}}/commit/{{hash}}",
"compareUrlFormat": "{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...{{currentTag}}",
"userUrlFormat": "{{host}}/{{user}}",
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "feature",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "perf",
"section": "Performance Improvements"
},
{
"type": "revert",
"section": "Reverts"
},
{
"type": "docs",
"section": "Documentation",
"hidden": true
},
{
"type": "style",
"section": "Styles",
"hidden": true
},
{
"type": "chore",
"section": "Miscellaneous Chores",
"hidden": true
},
{
"type": "refactor",
"section": "Code Refactoring",
"hidden": true
},
{
"type": "test",
"section": "Tests",
"hidden": true
},
{
"type": "build",
"section": "Build System",
"hidden": true
},
{
"type": "ci",
"section": "Continuous Integration",
"hidden": true
}
]
}
"packages": ["packages/*"],
"npmClient": "yarn",
"version": "1.2.8",
"changelogPreset": {
"name": "conventionalcommits",
"issuePrefixes": ["#"],
"issueUrlFormat": "{{host}}/{{owner}}/{{repository}}/issues/{{id}}",
"commitUrlFormat": "{{host}}/{{owner}}/{{repository}}/commit/{{hash}}",
"compareUrlFormat": "{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...{{currentTag}}",
"userUrlFormat": "{{host}}/{{user}}",
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "feature",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "perf",
"section": "Performance Improvements"
},
{
"type": "revert",
"section": "Reverts"
},
{
"type": "docs",
"section": "Documentation",
"hidden": true
},
{
"type": "style",
"section": "Styles",
"hidden": true
},
{
"type": "chore",
"section": "Miscellaneous Chores",
"hidden": true
},
{
"type": "refactor",
"section": "Code Refactoring",
"hidden": true
},
{
"type": "test",
"section": "Tests",
"hidden": true
},
{
"type": "build",
"section": "Build System",
"hidden": true
},
{
"type": "ci",
"section": "Continuous Integration",
"hidden": true
}
]
}
}
35 changes: 17 additions & 18 deletions packages/actions/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,41 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.2.8](https://github.com/privacy-scaling-explorations/p0tion/compare/v1.2.6...v1.2.8) (2026-03-25)

### Bug Fixes

**Note:** Version bump only for package @p0tion/actions
- **actions:** use Project instead of ProjectName ([2d2ff11](https://github.com/privacy-scaling-explorations/p0tion/commit/2d2ff1197d8f14d0208f549558674a2ab99ff684))
- **all:** lint and prettier modifications ([e85bb5f](https://github.com/privacy-scaling-explorations/p0tion/commit/e85bb5fdcb73000365c271751d1689d1fdcfc0b9))

## [1.2.7](https://github.com/privacy-scaling-explorations/p0tion/compare/v1.2.6...v1.2.7) (2026-03-25)

### Bug Fixes

- **actions:** use Project instead of ProjectName ([2d2ff11](https://github.com/privacy-scaling-explorations/p0tion/commit/2d2ff1197d8f14d0208f549558674a2ab99ff684))

**Note:** Version bump only for package @p0tion/actions

## [1.2.0](https://github.com/privacy-scaling-explorations/p0tion/compare/v1.1.1...v1.2.0) (2024-04-05)

**Note:** Version bump only for package @p0tion/actions





## [1.1.1](https://github.com/privacy-scaling-explorations/p0tion/compare/v1.0.8...v1.1.1) (2024-01-06)


### Features

* **sybil:** add GH age check ([bcb670c](https://github.com/privacy-scaling-explorations/p0tion/commit/bcb670c994f8ee6699207ebe98939b91d49b7ad6))

- **sybil:** add GH age check ([bcb670c](https://github.com/privacy-scaling-explorations/p0tion/commit/bcb670c994f8ee6699207ebe98939b91d49b7ad6))

### Bug Fixes

* r1cs oiteration exit once s1 read ([9fbb74f](https://github.com/privacy-scaling-explorations/p0tion/commit/9fbb74fadba3dd3d9fa900e98af300f36597d93e))
* **setup:** fix issue with wasm file always being deleted ([f11504f](https://github.com/privacy-scaling-explorations/p0tion/commit/f11504f772c61c052994da69b42f9266ce0e05be))
* some typos ([71104c0](https://github.com/privacy-scaling-explorations/p0tion/commit/71104c07562d8d185e589846bb834d2a4c40afe8))
* **steps:** add upload bar and allow more time in between steps ([94cc822](https://github.com/privacy-scaling-explorations/p0tion/commit/94cc822ffe92f20bcd55d6ba69e0100b3582c115))
* use instance profile ARN to start instance ([c20871e](https://github.com/privacy-scaling-explorations/p0tion/commit/c20871efb745f5a2d6671bd7cd054350383c8888))
* **vm:** fix deprecated node setup script ([68008eb](https://github.com/privacy-scaling-explorations/p0tion/commit/68008ebe2919728a841fa56083554d3d52231ab9))
* **vm:** fix verification script ([8de22ad](https://github.com/privacy-scaling-explorations/p0tion/commit/8de22ad9e9cbbda7795fa457af2895ebd7f9fb07))
* **vm:** verification script fix ([ce4e759](https://github.com/privacy-scaling-explorations/p0tion/commit/ce4e759797f2474035415648ed82523411007f10))


- r1cs oiteration exit once s1 read ([9fbb74f](https://github.com/privacy-scaling-explorations/p0tion/commit/9fbb74fadba3dd3d9fa900e98af300f36597d93e))
- **setup:** fix issue with wasm file always being deleted ([f11504f](https://github.com/privacy-scaling-explorations/p0tion/commit/f11504f772c61c052994da69b42f9266ce0e05be))
- some typos ([71104c0](https://github.com/privacy-scaling-explorations/p0tion/commit/71104c07562d8d185e589846bb834d2a4c40afe8))
- **steps:** add upload bar and allow more time in between steps ([94cc822](https://github.com/privacy-scaling-explorations/p0tion/commit/94cc822ffe92f20bcd55d6ba69e0100b3582c115))
- use instance profile ARN to start instance ([c20871e](https://github.com/privacy-scaling-explorations/p0tion/commit/c20871efb745f5a2d6671bd7cd054350383c8888))
- **vm:** fix deprecated node setup script ([68008eb](https://github.com/privacy-scaling-explorations/p0tion/commit/68008ebe2919728a841fa56083554d3d52231ab9))
- **vm:** fix verification script ([8de22ad](https://github.com/privacy-scaling-explorations/p0tion/commit/8de22ad9e9cbbda7795fa457af2895ebd7f9fb07))
- **vm:** verification script fix ([ce4e759](https://github.com/privacy-scaling-explorations/p0tion/commit/ce4e759797f2474035415648ed82523411007f10))

## [1.0.5](https://github.com/privacy-scaling-explorations/p0tion/compare/v1.0.4...v1.0.5) (2023-07-24)

Expand Down
2 changes: 1 addition & 1 deletion packages/actions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@p0tion/actions",
"version": "1.2.6",
"version": "1.2.8",
"description": "A set of actions and helpers for CLI commands",
"repository": "git@github.com:privacy-scaling-explorations/p0tion.git",
"homepage": "https://github.com/privacy-scaling-explorations/p0tion",
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/src/helpers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const ec2InstanceTag = "p0tionec2instance"
// The name of the VM startup script file.
export const vmBootstrapScriptFilename = "bootstrap.sh"
// Match hash output by snarkjs in transcript log
export const contribHashRegex = new RegExp("Contribution.+Hash.+\n\t\t.+\n\t\t.+\n.+\n\t\t.+\r?\n")
export const contribHashRegex = /Contribution.+Hash.+\s+.+\s+.+\s+.+\s+.+\s*/

/**
* Define the supported VM configuration types.
Expand Down
4 changes: 2 additions & 2 deletions packages/actions/src/helpers/vm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export const createEC2Instance = async (
Value: "false"
},
{
Key: "ProjectName",
Key: "Project",
Value: "trusted-setup"
}
]
Expand All @@ -208,7 +208,7 @@ export const createEC2Instance = async (
ResourceType: "volume",
Tags: [
{
Key: "ProjectName",
Key: "Project",
Value: "trusted-setup"
}
]
Expand Down
28 changes: 15 additions & 13 deletions packages/actions/test/unit/helpers.utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,36 +72,38 @@ describe("Utils", () => {
)
})
})
describe("", () => {
const hashStr = "Contribution Hash: \n" +
"\t\t847482b6 5d88b59f 0e860287 8d527446 \n" +
"\t\tf2fe25f6 ba2eb6d8 7478803e b723dd39 \n" +
"\t\tdf0fa90a 4d8b0ee8 07d70070 03308fb4 \n" +
"\t\t17c8ff20 0123b155 9aa15a5c 14b5bf26"
const hash = "Contribution Hash: 847482b6 5d88b59f 0e860287 8d527446 " +
describe("Contribution hashes", () => {
const hashStr =
"Contribution Hash: \n" +
"\t\t847482b6 5d88b59f 0e860287 8d527446 \n" +
"\t\tf2fe25f6 ba2eb6d8 7478803e b723dd39 \n" +
"\t\tdf0fa90a 4d8b0ee8 07d70070 03308fb4 \n" +
"\t\t17c8ff20 0123b155 9aa15a5c 14b5bf26"
const hash =
"Contribution Hash: 847482b6 5d88b59f 0e860287 8d527446 " +
"f2fe25f6 ba2eb6d8 7478803e b723dd39 " +
"df0fa90a 4d8b0ee8 07d70070 03308fb4 " +
"17c8ff20 0123b155 9aa15a5c 14b5bf26"

it("should match unix contribution hash", () => {
const hashStrUnix = hashStr + '\n'
//const r = new RegExp("Contribution Hash: \n\t\t.+\n.+\n.+\n.+\n")
const hashStrUnix = `${hashStr}\n`
// const r = new RegExp("Contribution Hash: \n\t\t.+\n.+\n.+\n.+\n")
const match = hashStrUnix.match(contribHashRegex)
expect(match).not.to.be.null

expect(match?.length).to.be.greaterThan(0)

const contributionHash = match?.at(0)?.replaceAll("\n\t\t", "")!
expect(contributionHash).to.equal(hash + "\n")
expect(contributionHash).to.equal(`${hash}\n`)
})
it("should match Windows contribution hash", () => {
const hashStrWin = hashStr + "\r\n"
const hashStrWin = `${hashStr}\r\n`
const match = hashStrWin.match(contribHashRegex)
expect(match).not.to.be.null
expect(match?.length).to.be.greaterThan(0)

const contributionHash = match?.at(0)?.replaceAll("\n\t\t", "")!
expect(contributionHash).to.equal(hash + "\r\n")
expect(contributionHash).to.equal(`${hash}\r\n`)
})
})
})
Loading
Loading