New address encoding (#356)

* [common] rework address encoding

* new address encoding

* replace offchain address by vtxo output key in DB

* merge migrations files into init one

* fix txbuilder fixtures

* fix transaction events
This commit is contained in:
Louis Singer
2024-10-18 16:50:07 +02:00
committed by GitHub
parent b1c9261f14
commit b536a9e652
58 changed files with 2243 additions and 1896 deletions

View File

@@ -20,24 +20,22 @@ var (
Txid: txid,
VOut: 0,
},
Receiver: domain.Receiver{
Descriptor: desc,
Amount: 2000,
},
Pubkey: pubkey,
Amount: 2000,
},
},
Receivers: []domain.Receiver{
{
Descriptor: desc,
Amount: 700,
Pubkey: pubkey,
Amount: 700,
},
{
Descriptor: desc,
Amount: 700,
Pubkey: pubkey,
Amount: 700,
},
{
Descriptor: desc,
Amount: 600,
Pubkey: pubkey,
Amount: 600,
},
},
},
@@ -49,25 +47,21 @@ var (
Txid: txid,
VOut: 0,
},
Receiver: domain.Receiver{
Descriptor: desc,
Amount: 1000,
},
Pubkey: pubkey,
Amount: 1000,
},
{
VtxoKey: domain.VtxoKey{
Txid: txid,
VOut: 0,
},
Receiver: domain.Receiver{
Descriptor: desc,
Amount: 1000,
},
Pubkey: pubkey,
Amount: 1000,
},
},
Receivers: []domain.Receiver{{
Descriptor: desc,
Amount: 2000,
Pubkey: pubkey,
Amount: 2000,
}},
},
}