forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Restored account와 Puppet account의 nonce값을 0으로 하면 replay attack이 가능
새로 생성된 account의 nonce 값은 이전에 발생했던 어떤 tx와도 겹치지 않도록
-
block number * MAX_TXS_PER_ACCT_PER_BLOCK(64)
로 결정 -
Active Account와 Puppet Account를 구별하는 방법은 없을까?
위 방식으로 Puppet Account의 nonce 값을 정하면 과거 active 상태일 때의 nonce 값으로 절대 block number * MAX_TXS_PER_ACCT_PER_BLOCK 값을 만들 수 없으므로(따라잡을 수 없으므로) 구별 가능할 것 -
복구 과정이 끝났을 때의 nonce값
block number * MAX_TXS_PER_ACCT_PER_BLOCK + 1 로 결정하면 되지 않을까?
대신에 본인이 본인의 account를 복구하면 nonce값이 꼬이니 다른 account로 복구하는 것으로
guillaez
Metadata
Metadata
Labels
enhancementNew feature or requestNew feature or request