decouple kernels from the kernel MMR (#2043)
This commit is contained in:
@@ -188,6 +188,15 @@ impl Readable for TxKernel {
|
||||
}
|
||||
}
|
||||
|
||||
/// We store TxKernelEntry in the kernel MMR.
|
||||
impl PMMRable for TxKernel {
|
||||
type E = TxKernelEntry;
|
||||
|
||||
fn as_elmt(self) -> Self::E {
|
||||
self.into()
|
||||
}
|
||||
}
|
||||
|
||||
impl TxKernel {
|
||||
/// Return the excess commitment for this tx_kernel.
|
||||
pub fn excess(&self) -> Commitment {
|
||||
@@ -310,14 +319,6 @@ impl FixedLength for TxKernelEntry {
|
||||
+ secp::constants::AGG_SIGNATURE_SIZE;
|
||||
}
|
||||
|
||||
impl PMMRable for TxKernelEntry {
|
||||
type E = Self;
|
||||
|
||||
fn as_elmt(self) -> Self::E {
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
/// TransactionBody is a common abstraction for transaction and block
|
||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||
pub struct TransactionBody {
|
||||
|
||||
Reference in New Issue
Block a user