ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • [클레이튼 개념 잡기 2] Account & Transaction
    Blockchain/Klaytn 2019. 8. 5. 20:47

    Klaytn Account

    : 전형적인 Blockchain platform 에서 Address는 '0x0fe2e20716753082222b52e753854f40afddffd2' 다음과 같다. 이런 address 는 key pair 에 종속되어 있으며 다음과 같은 한계점이 있다.

    • 사용자가 원하는 주소를 사용할 수 없다.
    • Account 의 보안성 향상을 위해 multiple key pair 를 사용하고 싶어도 불가능하다.
    • 불가피하게 private key 가 노출 되었을때 Account 의 key pair를 교체할 수 없고  보안상의 목적으로 private key 를 update 하는 것도 불가능하다.

    이러한 제약조건을 극복하고자 Klaytn 은 여러개의 key pair을 선택할 수 있고, 각 key pair 마다 다른 역할(role) 을 가지게 할 수 있다.

    Multiple Key pairs 와 Role-Based Keys

    : 앞서 설명한 것과 같이 Klaytn 은 다음과 같은 기술을 제공한다.

    • Klaytn account 는 계정에 연결된 key pair 를 변경 할 수 있다.
    • Klaytn account 는 각각의 키를 서로 다른 목적으로 할당 가능하도록 multiple key pair 을 지원한다. 
    • Klaytn account 는 여전히 기존에 사용되던 address (key pair에 종속되던) 와 호환성을 유지한다.

    이를 통해 사용자는 개인키 관리의 보안성을 높일 수 있다. 예를 들어 사용자의 키가 노출되었을때 그들을 간단하게 노출된 key를 제거하고 새로운 key를 생성해 대체 할 수 있다. 

    Human-Readable Address (HRA)

    : 외우기 힘든 20byte 의 Address 를 readable 하게 ( 개발 진행중 ) - Klaytn opts to provide a mapping between a 20-byte address to a 20-byte length text string that end-users could assign their own preferred values to. This feature in Klaytn is called human-readable address (HRA). Currently, this feature is under development, and we will provide more information when it is ready.

    Klaytn Wallet Key Format

    : Klaytn 은 address 와 private key 를 다루기 쉽게 다음과 같은 key format 을 제공한다.

     > 0x{private key}0x{type}0x{address in hex}   (ex.  0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d80x000xa94f5374fce5edbc8e2a8697c15331677e6ebf0b )

    type은 항상 '00' 이여야 하며 그 외의 값은 추후 변경을 위해 보존되어있다.   

     

     

    Klay Token

    : peb 은 Klaytn 에서 가장 작은 화폐 단위 이며, KLAY 는 10^18 peb 이다. 

     

    Klaytn Transaction

    : 전형적인 Blockchain platfrom 에서 의 Transaction 은 단일 타입의 transaction 만 제공하는데 반해, Klaytn 은 다양한 Transaction 타입을 제공한다.  

    Signature Validation of Transactions

    : 기존 Blockchain platform 에서는 주소가 public key 로 부터 파생되며, 이는 또 Transaction signature 을 통해서도 파생될 수 있다. 이는 address 와 key pair 가 강력하게 결합되어 있기에 가능하다. 하지만 Klaytn 에서는 address 와 key pair 가 분리되어 있으므로 sender address 를 Transaction signature 에서 알아낼 수 없다. 고로 Klaytn 에서는 'TxTypeLegacyTransaction' 을 제외한 모든 Transaction type 은 'from' field 를 반드시 포함 해야한다.

    Transaction Fee Delegation

    : 유동적인 비즈니스 모델을 제공하기 위해 Klaytn 에서는 몇 가지 수수료 대납 기능(fee-delegated Transaction) 을 제공한다. 이 기능을 통해 end-user 대신 service provider 가 fee 를 대신 납부 할 수 있으며 'Ratio' 파라미터를 통해 대납할 fee 의 비율을 설정 가능하다. Fee-delegation 을 사용하기 위해 'from sender 의 signature' 과 'fee payer 의 signature' 이 반드시 필요하다.

    Transaction Fee

    : Klaytn 에서는 Gas Price 를 User 가 직접 조정할 수 없으며 Unit gas price는 Platform 에 의해 정의 되어진다. 현재 Klaytn 의 gas price 는 25 Gpeb 이다. 

     

    출처 :  https://docs.klaytn.com/ (Klaytn 공식 Document)

Designed by Tistory.