Skip to content

Conversation

@instagibbs
Copy link
Contributor

@instagibbs instagibbs commented Dec 18, 2018

Porting of the PAK feature from liquid repo.

Deprecates xpub import in favor of descriptor import to allow flexible paths and key types including: wpkh, sh_wpkh, and pkh

@instagibbs
Copy link
Contributor Author

Feature complete. Will clean up history, then add descriptor support on top.

@instagibbs instagibbs force-pushed the e17-pak branch 6 times, most recently from e2043c3 to 85f4a75 Compare January 8, 2019 00:20
@instagibbs instagibbs changed the title [WIP, 0.17] PAK Enforcement, as policy [0.17] PAK Enforcement, as policy Jan 11, 2019
@instagibbs
Copy link
Contributor Author

rebased, squashed, etc. Ready for review.

Copy link
Contributor

@stevenroose stevenroose left a comment

Choose a reason for hiding this comment

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

More commits than I expected :o

@instagibbs
Copy link
Contributor Author

@stevenroose I believe I responded to all issues. I'll squash commits after ACK.

@stevenroose
Copy link
Contributor

stevenroose commented Jan 24, 2019

ACK 4f20d1d but add the whitelist link to the documentation.

Some builds are failing though..

@instagibbs
Copy link
Contributor Author

@stevenroose yeah annoying but just the ones we expect to on and off time out.

@instagibbs
Copy link
Contributor Author

instagibbs commented Jan 24, 2019

squashed, and added single commit linking reader to pak crypto scheme.

@stevenroose
Copy link
Contributor

re-ACK 19ef5e3

@stevenroose stevenroose merged commit 19ef5e3 into ElementsProject:elements-0.17 Jan 24, 2019
stevenroose added a commit that referenced this pull request Jan 24, 2019
19ef5e3 Add link to pak authorization design in secp-zpk (Gregory Sanders)
1cb252e Descriptor support in PAK infrastructure and tests (Gregory Sanders)
6366734 Properly encode parent witness addresses (Gregory Sanders)
7e63ce3 Extend validateaddress to check parent address validity. (Gregory Sanders)
85bcda5 pak mempool removal: don't modify the vector you are taking range over (Gregory Sanders)
8de4237 fixup mempool clearing of peg-outs on block commitment (Gregory Sanders)
542b826 ScriptHasvalidPAKProof: Allow any standard single-key output script type (Gregory Sanders)
71acfb3 Add IsPayToWitnessPubkeyHash convenience function (Gregory Sanders)
1241343 testproposedblock: Reject blocks with non-matching pak commitments (Gregory Sanders)
47ea638 miner adds commitment when pak enforcement is set only (Gregory Sanders)
3fc3ac3 disallow pak enforcement arg when nonstandard tx are possible (Gregory Sanders)
dfe5331 Miner adds PAK commitments when config 'disagress' with block commits (Gregory Sanders)
bcd8db9 functional test for pak feature (Gregory Sanders)
5b6d767 Load PAK arguments from config and disk on startup (Gregory Sanders)
d391782 Add getwalletpakinfo RPC call (Gregory Sanders)
f06e6f6 Wallet offline_counter starts at -1 (Gregory Sanders)
0e52456 Return status of pak enforcement on the blockchain in (Gregory Sanders)
050bb49 Add getpakinfo RPC call, without wallet state (Gregory Sanders)
3cfe2d4 Add sendtomainchain RPC call which is used when -pak_enforce is enabled (Gregory Sanders)
567de67 Break out sendtomainchain to call functions based on -enforce_pak (Gregory Sanders)
070be0f add initpegout RPC for peg-out wallet initialization (Gregory Sanders)
47422e7 Write and load peg-out wallet functions on wallet load (Gregory Sanders)
4e631bd Add derivation helpers for peg-out wallet infrastructure (Gregory Sanders)
1559cc9 C(Pub)Key::Derive: Return optional tweak vector for peg-out wallets (Gregory Sanders)
f1dbd1c -multi_data_permitted: Allow >1 op_return output by policy (Gregory Sanders)
9f5cc03 Read PAK list from connected blocks, save list, and boot transactions not conforming (Gregory Sanders)
86fbc24 GetPAKKeysFromCommitment utility function (Gregory Sanders)
bf66d77 Add Read/Write functions to txdb for PAK lists (Gregory Sanders)
2b4899d PAK enforcement via standardness, drop multi-op_return restriction (Gregory Sanders)
6679823 Create global PAK lists for config and blockchain state (Gregory Sanders)
8c7746c Add CScript::IsPayToPubkeyHash convienience function (Gregory Sanders)
43424cb Add PAK proof validation function (Gregory Sanders)
378e594 Define PAKList structure and operations (Gregory Sanders)
40571ab Turn on secp-zkp experimental modules for PAK (Gregory Sanders)
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.

2 participants