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

feat!: indexing public key #437

Closed
wants to merge 1 commit into from

Conversation

b00f
Copy link
Collaborator

@b00f b00f commented Feb 28, 2023

Description

This PR indexes the public key by addresses and removes the public key from the transactions if it is already known.
This could potentially reduce the size of the blocks, since some transactions may already have known public keys.

BREAKING CHANGE

@b00f b00f marked this pull request as draft February 28, 2023 14:22
@b00f b00f marked this pull request as ready for review April 26, 2023 13:15
@b00f b00f changed the title WIP: indexing public key feat: indexing public key Apr 26, 2023
@codecov
Copy link

codecov bot commented Apr 26, 2023

Codecov Report

Merging #437 (64a32b5) into main (7b25860) will increase coverage by 0.03%.
The diff coverage is 86.27%.

@@            Coverage Diff             @@
##             main     #437      +/-   ##
==========================================
+ Coverage   83.73%   83.77%   +0.03%     
==========================================
  Files         155      155              
  Lines        7328     7358      +30     
==========================================
+ Hits         6136     6164      +28     
  Misses        914      914              
- Partials      278      280       +2     

@b00f b00f changed the title feat: indexing public key feat!: indexing public key Jul 14, 2023
@@ -304,14 +304,27 @@ func TestSortitionSanityCheck(t *testing.T) {
}

func TestSignBytes(t *testing.T) {
d, _ := hex.DecodeString("01f10c077fcc04f5ef819fc9d6080101d3e45d249a39d806a1faec2fd85820db340b98e30168fc72a1a961933e694439b2e3c8751d27de5ad3b9c3dc91b9c9b59b010c746573742073656e642d7478b53d79e156e9417e010fa21f2b2a96bee6be46fcd233295d2f697cdb9e782b6112ac01c80d0d9d64c2320664c77fa2a68d82fa4fcac04a3b565267685e90db1b01420285d2f8295683c138c092c209479983ba1591370778846681b7b558e0611776208c0718006311c84b4a113335c70d1f5c7c5dd93a5625c4af51c48847abd0b590c055306162d2a03ca1cbf7bcc1")
d, _ := hex.DecodeString("0001f10c077fcc04f5ef819fc9d6080101d3e45d249a39d806a1faec2fd85820db340b98e30168fc72a1a961933e694439b2e3c8751d27de5ad3b9c3dc91b9c9b59b010c746573742073656e642d7478b53d79e156e9417e010fa21f2b2a96bee6be46fcd233295d2f697cdb9e782b6112ac01c80d0d9d64c2320664c77fa2a68d82fa4fcac04a3b565267685e90db1b01420285d2f8295683c138c092c209479983ba1591370778846681b7b558e0611776208c0718006311c84b4a113335c70d1f5c7c5dd93a5625c4af51c48847abd0b590c055306162d2a03ca1cbf7bcc1")
Copy link
Collaborator Author

@b00f b00f Jul 31, 2023

Choose a reason for hiding this comment

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

d, _ := hex.DecodeString(
		"01" + // version
			"a1b2c3d4" + // stamp
			"01" + // sequence
			"01" + // fee
			"01" + // payload type
			"013333333333333333333333333333333333333333" + // sender
			"012222222222222222222222222222222222222222" + // receiver
			"01" + // fee
			"00" + // memo
			"b53d79e156e9417e010fa21f2b2a96bee6be46fcd233295d2f697cdb9e782b6112ac01c80d0d9d64c2320664c77fa2a6" + // sig
			"8d82fa4fcac04a3b565267685e90db1b01420285d2f8295683c138c092c209479983ba1591370778846681b7b558e061" + // pub key
			"1776208c0718006311c84b4a113335c70d1f5c7c5dd93a5625c4af51c48847abd0b590c055306162d2a03ca1cbf7bcc1") // pub key
			```

@kehiy kehiy added the Breaking Changes It Contains some Changes that might not be backward compatible label Aug 22, 2023
@b00f b00f closed this Sep 1, 2023
@b00f b00f deleted the indexing-public-key branch September 1, 2023 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking Changes It Contains some Changes that might not be backward compatible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants