Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin Architecture #2

Open
unwriter opened this issue Apr 15, 2020 · 0 comments
Open

Plugin Architecture #2

unwriter opened this issue Apr 15, 2020 · 0 comments

Comments

@unwriter
Copy link
Contributor

Make it easy to construct transactions instead of having to pass in a full set of opcodes.

For example, instead of:

{
  v: 1,
  edge: { in: 1, out: 2 },
  out: [ { "o0": "OP_DUP", "o1": "OP_HASH160", "h2": "12ab8dc588ca9d5787dde7eb29569da63c3a238c", "o3": "OP_EQUALVERIFY", "o4": "OP_CHECKSIG" } ]
}

Something like

{
  v: 1,
  edge: { in: 1, out: 2 },
  out: [ {"plugin": "P2PKH", "h2": "12ab8dc588ca9d5787dde7eb29569da63c3a238c"}]
}

The syntax needs to be fleshed out. Feedback appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant