Giter VIP home page Giter VIP logo

Comments (5)

hackaugusto avatar hackaugusto commented on August 30, 2024 1

The new scheme is:

Tag Prefix Intended execution mode Target Allowed note types
00 Network Specific Public
01 Network Use case Public
10 Local Any Public
11 Local Any Any

The validation changes to if the two high bits are not 11, then the note must be public.

from miden-base.

hackaugusto avatar hackaugusto commented on August 30, 2024

Notes:

  • The create_note doesn't have the notion of local/network execution. It seems we missed the issue to implement it.

from miden-base.

hackaugusto avatar hackaugusto commented on August 30, 2024

I guess we should add an abstraction of Note's Tags. That is to say, the implementation of NoteTag is basically hardcoded for the P2ID use case. I think we need a less opinionated implementation, to be used by apps.

The implementation would have the note storage and execution types as arguments, and would ensure these are correctly encoded. And would allow the user to define the rest of the bits to anything. The goal would be to support the sync API properly.

I think it would also make sense to have an wrapper of the u32 type, that validates the user specified bits of the the TAG fit in the space available.

from miden-base.

bobbinth avatar bobbinth commented on August 30, 2024

As commented in #642, I don't think there was a bug (as far as I can tell, things worked as intended) - but we were missing a constructor for creating tags for "use case" notes. I left a comment in the PR about a potential way to address this.

from miden-base.

bobbinth avatar bobbinth commented on August 30, 2024

Closed by #657.

from miden-base.

Related Issues (20)

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.