Giter Club home page Giter Club logo

ivy-bitcoin's People

Contributors

c410-f3r avatar canndrew avatar danrobinson avatar knocte avatar loucru1 avatar rocky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ivy-bitcoin's Issues

RFC: changing type-composition from "Foo(Bar)" to "Foo<Bar>"

By looking at the PreImage example from the docs I've realised there's this special type called Sha256(Bytes).

First, I'm wondering, is this type just acting as a keyword, or does ivy actually parse the parenthesis to find a type composition between Sha256 and Bytes?

If it's the latter, I would recommend changing the character for this kind of type composition to use <> instead of (), so instead of Sha256(Bytes) it would be Sha256<Bytes>.

Main motivations:

  • It would read a bit cleaner, since there's less need for the eye to "compute" nested parenthesis.
  • It resembles generics notation in languages such as C#, Java, F#, etc.
  • It potentially simplifies the implementation of the compiler? Given that parenthesis characters would have one less function.

Any feedback welcome.

Integer and Number parameter types

I've got confused that the playground validator rejects contract parameters with type Number but accepts the undocumented type Integer. So, my question: Are the types semantically equal?

Add more Integer operations (+, -, >, <, min, max)

Hi, I'm wondering if Ivy can handle other arithmetic functions and integer values, to write functions like is_greater(valA: int, valB: int)? I know that the related opcodes do already exist (OP_MIN), but in the Ivy docs I've not found nothing similar.
Thank you

Support for covenants?

Would be nice to have a nice way to experiment with new covenants proposal.

  • OP_CAT + OP_CHECKSIGFROMSTACK (those are live on Elements/Liquid)
  • OP_CHECKTEMPLATEVERIFY (bip119)
  • SIGHASH_ANYPREVOUT

The first one can can be easily tested on Liquid already

Ability to generate BCH addresses

I would like to generate a valid BCH address in Ivy. Do you have any plans to support this and if you do is there a workaround I could test out?

Thanks,
Dylan

Feature Request: explain the lightning network in an ivy template

I'm on the edge of diving into LN and have somewhat of an understanding how the payment channels in LN should work but never got around actually looking int up. If there was an ivy template in the playground, I would have studied it now.

Generally, please put real use cases into the template list and maybe add a description to provide context as motivation for people stumbling onto it.

Fixed point contracts?

I'm trying to express a contract that lets you redeem it if you find the fixed point of a hash function. For example, I wanted to try:

contract FixedPoint(val: Value) {
  clause reveal(hash: Bytes) {
    verify sha256(hash) == hash
    unlock val
  }
}

Unfortunately Ivy's type system seems to be forbidding this, because the type of sha256 on a T is always a Sha256(T), so equality comparisons will fail to typecheck. Is there a coercion operator or some other way for me to express this? I can express it natively in script pretty easily.

Feature Request: testnet

It would be cool to play around with the contracts on testnet. So supporting testnet-addresses would be awesome.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.