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

[NayNay] Sign takes a verifying key now #382

Merged
merged 18 commits into from
Jun 25, 2024
Merged

Conversation

rh0delta
Copy link
Contributor

Description

  • updated sign methods to take a verifying key as an argument and use it to overwrite the keyring verifying key if needed

GitHub Issue or Linear Task

closes entropyxyz/cli#113

How Has This Been Tested?

- updated sign methods to take a verifying key as an argument and use it to overwrite the keyring verifying key if needed
@rh0delta
Copy link
Contributor Author

still in draft state, need to add tests

@rh0delta rh0delta marked this pull request as ready for review June 17, 2024 19:23
@mixmix
Copy link
Collaborator

mixmix commented Jun 17, 2024

@mixmix review

Copy link
Collaborator

@mixmix mixmix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, tests!

There are a couple documentation things I'd like to see added:

  • fix the SigOps typedocs while you're there
  • add to CHANGELOG.md

tests/sign.test.ts Outdated Show resolved Hide resolved
tests/sign.test.ts Outdated Show resolved Hide resolved
tests/sign.test.ts Outdated Show resolved Hide resolved
src/signing/index.ts Show resolved Hide resolved
tests/sign.test.ts Outdated Show resolved Hide resolved
@rh0delta
Copy link
Contributor Author

@mixmix / @frankiebee this PR is ready for re-review

@rh0delta rh0delta requested a review from mixmix June 19, 2024 19:32
src/signing/index.ts Outdated Show resolved Hide resolved
@rh0delta rh0delta requested a review from mixmix June 20, 2024 17:49
src/signing/index.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@frankiebee frankiebee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit picks otherwise looks good

src/signing/index.ts Outdated Show resolved Hide resolved
src/signing/index.ts Outdated Show resolved Hide resolved
Co-authored-by: Frankie <frankie.diamond@gmail.com>
@rh0delta rh0delta requested a review from frankiebee June 20, 2024 18:00
src/signing/index.ts Outdated Show resolved Hide resolved
tests/sign.test.ts Outdated Show resolved Hide resolved
tests/sign.test.ts Outdated Show resolved Hide resolved
@rh0delta rh0delta requested a review from mixmix June 24, 2024 14:23
mixmix
mixmix previously approved these changes Jun 24, 2024
@mixmix
Copy link
Collaborator

mixmix commented Jun 24, 2024

@rh0delta I worked on #391 to ensure timings were not an issue - needed this locally to get tests running anyway.

Not sure what's going on with sig on yours? restarting tests

@mixmix
Copy link
Collaborator

mixmix commented Jun 24, 2024

NOTE: if it passes after that .... we have intermittent tests

Copy link
Collaborator

@frankiebee frankiebee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great!

@frankiebee frankiebee merged commit 7e6492b into main Jun 25, 2024
1 check passed
@frankiebee frankiebee deleted the naynay/sign-verifying-keys branch June 25, 2024 17:50
rh0delta added a commit that referenced this pull request Jul 11, 2024
## [0.2.2] Bathala - 2024-07-11 (entropy-core compatibility: 0.2.0)

### Added
- now exports utils [395](#395)
- now exports testing environments from /dev
[393](https://github.com/entropyxyz/sdk/pull/393/files)
### Fixed
- hot fix for issue #380: try in reverse order for testnet environment
- `entropy.signingManager.getTimeStamp` ->
`entropy.signingManager.getBlockNumber` signature request no longer
takes a time stamp and now takes a block number.
[396](#396)

### Changed
- constructor now throws if you pass no object
- sign now takes a verifying key
[382](#382)
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.

sign should take a verifying key
3 participants