PinSave
PinSave copied to clipboard
Bump o1js from 0.17.0 to 1.8.0 in /packages/frontend
Bumps o1js from 0.17.0 to 1.8.0.
Changelog
Sourced from o1js's changelog.
1.8.0 - 2024-09-18
Added
- Added
verifyEthersmethod to verify Ethereum signatures using the EIP-191 message hashing standard o1-labs/o1js#1815
- Added
fromEthersmethod for parsing and converting Ethereum public keys intoForeignCurvepoints, supporting both compressed and uncompressed formats.- Added
fromHexmethod for converting hexadecimal strings intoForeignCurvepoints.Fixes
- Fix incorrect behavior of optional proving for zkPrograms where
myProgram.setProofsEnabled(false)wouldn't work when called beforemyProgram.compile()o1-labs/o1js#18271.7.0 - 2024-09-04
Added
- Added
Encryption.encryptV2()andEncryption.decryptV2()for an updated encryption algorithm that guarantees cipher text integrity.
- Also added
Encryption.encryptBytes()andEncryption.decryptBytes()using the same algorithm.- New option
proofsEnabledforzkProgram(default value:true), to quickly test circuit logic with proofs disabled o1-labs/o1js#1805
- Additionally added
MyProgram.proofsEnabledto get the internal value ofproofsEnabledandMyProgram.setProofsEnabled(proofsEnabled)to set the value dynamically.Deprecated
this.sender.getAndRequireSignature()/getUnconstrained()deprecated in favor ofV2versions due to a vulnerability o1-labs/o1js#1799Fixes
- Fix behavior of
Int64.modV2()when the input is negative and the remainder should be 0 o1-labs/o1js#17971.6.0 - 2024-07-23
Added
SmartContract.emitEventIf()to conditionally emit an event o1-labs/o1js#1746- Added
Encryption.encryptV2()andEncryption.decryptV2()for an updated encryption algorithm that guarantees cipher text integrity.
- Also added
Encryption.encryptBytes()andEncryption.decryptBytes()using the same algorithm.Changed
- Reduced maximum bit length for
xor,not, andand, operations from 254 to 240 bits to prevent overflow vulnerabilities. o1-labs/o1js#1745- Allow using
Typeinstead ofType.provablein APIs that expect a provable type o1-labs/o1js#1751
- Example:
Provable.witness(Bytes32, () => bytes)- Automatically wrap and unwrap
UnconstrainedinfromValueandtoValue, so that we don't need to deal with "unconstrained" values outside provable code o1-labs/o1js#17511.5.0 - 2024-07-09
Breaking changes
- Fixed a vulnerability in
OffchainStatewhere it didn't store theIndexedMerkleTreelength onchain and left it unconstrained o1-labs/o1js#1676
... (truncated)
Commits
- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)