Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STAGING -> MASTER #4657

Merged
merged 27 commits into from
Feb 1, 2024
Merged

STAGING -> MASTER #4657

merged 27 commits into from
Feb 1, 2024

Conversation

hughy
Copy link
Contributor

@hughy hughy commented Feb 1, 2024

Summary

Testing Plan

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and
what additional work is required, if any.

[ ] Yes

danield9tqh and others added 26 commits January 29, 2024 11:06
This was just an alias for another type.
* derives public_address from view_key in build

UnsignedTransaction.build currently takes both a ViewKey _and_ a PublicAddress
as inputs

with a couple of small changes we can derive the public address from the view
key so that we don't need to pass both of them around

this simplifies the signatures for build from TypeScript through napi and into
Rust

* fixes slow unsigned test

* fixes lint
one PR added a fixture, another PR changed the arguments of a function that the
fixture called

when both PRs merged soon after each other, we ended up with a broken build
This is a move in an effort to delete Strategy.
* Changes frost test to use participantB address

The goal is to make it explicit in the test that the participants
all have the same address.

* adding comment
exposing 'sign' on the TypeScript side will be useful in the future for signing
transactions with pre-computed proofs, and it will be useful now for testing
This wallet test for createTransaction() was incorrectly in
transaction.test.slow. It was testing an error as a result of calling
Wallet.createTransaction().
…tch types in TS layer (cleaner representation) (#4631)
This was an old concept that is no longer needed for when Iron Fish was
a library to build a crypto coin and not a crypto coin itself. The
conecpts that were here have been moved off and to other models.
This was used to customize the class that the Network was instantiated
with. This is no longer necesary as we don't disable the miners reward
calculation anywhere in any tests.
* replacing pgk with nsk

* updating useunsignedtxfixture to use nsk:

* update unsigned.test.slow.ts
* adding serializable trait to jubjub::Fr

* adds InvalidProofAuthorizingKey

* variable name clean up

* fixing test
* adding invalid authorizing key error

* replacing pgk with proof authorizing key

* updating rust node js layer with proof authorizing key

* variable name clean up

* removing test todo

* build method for raw transaction
* updates TrustedDealerKeyPackage to use proofAuthorizingKey

we plan to store proofAuthorizingKey (nsk) on each account in the walletDb
instead of storing proofGenerationKey (ak, nsk)

updates split_secret to return proofAuthorizingKey as part of the
TrustedDealerKeyPackage instead of proofGenerationKey

propagates changes through napi

* removes unused imports

* uses FrSerializable and hex_key instead of bytes_to_hex
RPC returns proofAuthorizingKey (nsk) instead of proofGenerationKey
we recently released a change that added an optional field to the end of bech32
account encodings. however, we did not update the encoder to correctly handle
older encodings that are missing that optional field

if a user attempts to import an older bech32 account they will see an error when
the Bech32Encoder attempts to read a byte after the end of their import string

updates the Bech32Encoder to support decoding multiple versions:
- defines 'Bech32Decoder' as a function that takes a reader and decoding options
  and returns an AccountImport
- adds a mapping to Bech32Encoder that maps supported versions to decode
  functions for those versions

adds a test case for a bech32 account from v1.16.0
@hughy hughy requested a review from a team as a code owner February 1, 2024 01:51
@hughy hughy merged commit 4fab80d into master Feb 1, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants