Skip to content

Comments

use PublicKeyBytes instead of PublicKey#118

Merged
jking-aus merged 1 commit intosigp:unstablefrom
dknopik:db-pubkeybytes
Feb 3, 2025
Merged

use PublicKeyBytes instead of PublicKey#118
jking-aus merged 1 commit intosigp:unstablefrom
dknopik:db-pubkeybytes

Conversation

@dknopik
Copy link
Member

@dknopik dknopik commented Jan 28, 2025

PublicKey is the decompressed version of PublicKeyBytes, which is larger in memory and kind of costly to convert. We only need the decompressed version while verifying the signature during sync, so this PR switches to PublicKeyBytes everywhere else.

@dknopik dknopik added ready-for-review This PR is ready to be reviewed database labels Jan 28, 2025
@Zacholme7
Copy link
Member

lgtm

Copy link
Member

@jking-aus jking-aus left a comment

Choose a reason for hiding this comment

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

lgtm

@jking-aus jking-aus merged commit 3fecd62 into sigp:unstable Feb 3, 2025
10 checks passed
@dknopik dknopik deleted the db-pubkeybytes branch February 5, 2025 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

database ready-for-review This PR is ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants