Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • crown-core crown-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 75
    • Issues 75
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Crown
  • crown-corecrown-core
  • Issues
  • #207

Closed
Open
Created Jul 30, 2018 by Artem B@artemOwner0 of 3 tasks completed0/3 tasks

Key/Hashes Opcode for Verification

Motivation

The next opcodes are necessary in order to build Crown Platform registration infrastructure are verification opcodes: OP_REG_VERIFY, OP_REG_DUP.

OP_REG_VERIFY: Verify/approve (by signing a new registry entry). Need to sign the registered entity by its owners. OP_REG_UPDATE also can be used to verify the entity, but the data will be duplicated in this case.

OP_REG_DUP: Can be used to duplicate previous OP_REG output in case if OP_REG tx output needs to be spent but keep the registered entity without any changes. OP_REG_UPDATE also can be used to verify the entity, but the data will be duplicated in this case.

Feature Definition

  • Implementation of OP_REG_VERIFY, OP_REG_DUP opcodes and ability to process it by Crown Core software
  • JSON RPC commands to verify new entities
  • REST API for verifying new entities

Requirements

Opcode: <Owner Address(es)> OP_REG_VERIFY (hash/address, hash(name, data)) Workflow Rules: Inputs: 1 OP_REG_NEW on this hash → Output: OP_REG_VERIFY → Next Output: OP_REG_UPDATE | OP_REG_DUP | Unregister Entity

Opcode: <Owner Address(es)> OP_REG_DUP (hash/address, hash(name, data)) Workflow Rules: Inputs: 1 of OP_REG_NEW | OP_REG_VERIFY | OP_REG_UPDATE | OP_REG_DUP on this hash → Output: OP_REG_DUP → Next Output: OP_REG_UPDATE | OP_REG_DUP | Unregister Entity

OP_REG_opcodes_technical_workflow

Links/references

More details are available in the specification: https://docs.google.com/document/d/1WE9ikiSieQvyiM0iSY7hJh1h6HXIdQZJFD9jkJPW6dc/edit#bookmark=kix.jsqt9cncqfmr

Edited Jul 30, 2018 by Artem B
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking