ltc-mweb / ltc-mweb/libmw

Switch to fixed-size pegout hashes

Open
#48 0 comments 1 reaction 0 assignees View on GitHub
Consensus
Dominant language
C++
Stars
22
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Currently, we support 4-42 byte pegout addresses, which are included in the kernel. The same 4-42 bytes also make up the scriptPubKey of the pegout output in the HogEx transaction. So we're duplicating it each time.

We should instead just include the 20-byte hash of the scriptPubKey in the kernel to avoid that duplication.

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named. Start by tracing how pegout addresses are represented in the kernel and in the HogEx transaction; confirm the current 4–42-byte data path. Done means the kernel uses a fixed 20-byte scriptPubKey hash and no longer duplicates the full pegout data.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
blockchain
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.