pub enum AggregateVersion {
V1 {
transactions_hash: Hash256,
},
V2,
V3,
}Expand description
アグリゲートの構造のバージョン。形は同じで、署名の範囲と、中のトランザクションのハッシュの決まりが違う。
新しく作るのはいつもバージョン 3。それより前のものは、チェーンにあるものを読むためだけに扱う。
どの高さでどのバージョンが使えるかは、catapult の AggregateTransactionVersionValidator と
ネットワークの設定の [fork_heights] で決まる。
Variants§
V1
メインネットで高さ 1,690,500(strictAggregateTransactionHash)より前。 中のトランザクションのハッシュに誤った求め方も許されていたので、中身から求めずに、書いてあったものを持つ
V2
メインネットで高さ 4,759,100(uniqueAggregateTransactionHash)より前。 署名の範囲に、中のトランザクションの長さを含まない
V3
Implementations§
Trait Implementations§
Source§impl Clone for AggregateVersion
impl Clone for AggregateVersion
Source§fn clone(&self) -> AggregateVersion
fn clone(&self) -> AggregateVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AggregateVersion
Source§impl Debug for AggregateVersion
impl Debug for AggregateVersion
impl Eq for AggregateVersion
Source§impl PartialEq for AggregateVersion
impl PartialEq for AggregateVersion
impl StructuralPartialEq for AggregateVersion
Auto Trait Implementations§
impl Freeze for AggregateVersion
impl RefUnwindSafe for AggregateVersion
impl Send for AggregateVersion
impl Sync for AggregateVersion
impl Unpin for AggregateVersion
impl UnsafeUnpin for AggregateVersion
impl UnwindSafe for AggregateVersion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more