- 블록체인 네트워크의 참여자가 데이터의 유효성, 상태에 동의할 수 있게 합의에 도달하게 하는 프로세스
- 네트워크 참여자들 사이에서 데이터가 변경되거나 조작되지 않는걸 보장하고, 무결성과 투명성을 유지한다
종류
PoW, PoS
- 대표적인 합의 알고리즘으론 PoW와 PoS가 있다
PoW (Proof of Work)
- 네트워크 참여자들이 복잡한 계산 문제를 해결하여 새 블록을 생성하고 보상을 받는 방식
- 많은 컴퓨팅 파워를 필요로 하지만 보안성은 높다, 비트코인 같은 초기 블록체인에서 널리 사용
PoS (Proof of Stake)
- 참여자의 지분, 코인 보유량을 기반으로 새로운 블록 생성 권한을 부여하는 방식
- PoW에 비해 적은 컴퓨팅 파워를 사용하고, 자신이 보유한 지분에 따라 보상도 달라진다
Finality, Probability
- Finality는 금융업계에선 결제가 최종적으로 확정되었단 뜻으로, 블록체인에선 데이터를 변경할 수 없는 확정 상태를 뜻한다, 이는 비가역성이라고도 한다
- 반면 Probability는 데이터를 체인에 추가하고 확정될 가능성을 뜻하는데, 이는 거래가 최종적으로 확정되기까지의 걸리는 시간과 연관되며, 검증을 거칠수록 확정 가능성을 높이게 된다
- PoW 같은 경우는 블록이 검증되고 추가되기까지 많은 참여자들에 의해 합의해야 하기에 시간이 오래 소요되므로 Finality가 아닌 Probability로 데이터 접근을 제공한다
- Ethereum 같은 경우는 PoW에서 PoS로 변경하여 속도 처리를 개선하고 Finality를 더 빠르게 달성할 수 있도록 변경되었다