Cory
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Regen Cosmos SDK Architecture Review **Date:** August 28, 2020 **Attendees:** **Zoom link:** https://zoom.us/j/489240122 ## Agenda Items - [x] Protobuf Pub Keys / Extensible Address Format ([#6928](https://github.com/cosmos/cosmos-sdk/pull/6928), [#5694](https://github.com/cosmos/cosmos-sdk/issues/5694)) - [x] Discuss level of support for Amino compatibility (it seams to create constant issues and takes time) - [x] gRPC Swagger files [#7075](https://github.com/cosmos/cosmos-sdk/pull/7075) - [x] Structural Config [7178](https://github.com/cosmos/cosmos-sdk/issues/7178) - [x] What to do about IAVL? [#7100](https://github.com/cosmos/cosmos-sdk/issues/7100) - [ ] ... ## Notes - Protobuf pub keys - Marko: on my side, we removed secp in tendermint, so when aaron wanted to move to it - If we want backwards compatibility, the key names can't change (for amino serialization) - Somewhere in IBC was using a tendermint mock, which got updated - Tendermint migrated to using ed25519 keys in tests... - Aaron: could we move the ed25519 keys if we didn't change the names? - Marko: Sahith said he tried that out but saw some issues - Sahith: when we use ed25519 from cosmos, the in process cli tests are causing issues from staking. I closed one issue we had w/ reverting - To close the PR we had to use ed25519, even with keeping the same amino type name - Aaron: Stepping back there's a couple things we're trying to tackle here: - Change the address format for colission resistance (including all keys and ed25519) - An alternative to bringing all the keys in, the SDK could use a different method for computing hte address - Maybe a top level global config that involves the bech32 prefixes, and generates an address - Maybe we don't work on bringing all keys in from tendermint, and also maybe we don't even do all protobuf key types - Robert: i suggested a new format for computing addresses, but can we go over what hte whole goal is of computing them? - Aaron: In the linked issue (5694), we're trying to reduce colission likelihood without having to change current address formats. - Robert: So its ok to have 2 different schemas? - My proposal involves in the name also having a checksum - Aaron: the bech32 prefix is the human readable wrapper around arbitrary address bytes, and would not go away for new addresses - Aaron: I do think it would be good for the SDK to support atleat one of tehse new keys.. We do have the ability to pass in an address function? - Robert: Should we encode in the address from which scheme the address comes from? If it comes from one algorithm, how do we know where it comes from? - Aaron: That's only done in the pre-image of the hash. You theoretically could have someone generate an address that is not generated from the same chain, but it would be a valid address still and nobody could retreive those coins - Marie: So this would mean only one key was supported? - Aaron: Any chain could actually implement their set of supported keys, as defined in the function. - Aaron: Maybe we should put this to 0.41 ? - Marko: The inflating of migrating keys from tendermint to SDK, this is why i was advocating for just using secp for now, and doing the rest later... Especially if extensible address format is turning into a bigger thing. - Aaron: Does anyone else have opinions about the multi-sig? Do we need to be adding a secondary non-amino based multi-sig ? - Zaki: I don't think its a huge deal. In fact, it probably less UX confusion to not introduce it. - When we add new functionality, and do a bigger story around multisig, it would be a better time to adding protobuf based multi sig support - Cory: So what's left for stargate now? - Aaron: we should use existing pubkey encoding (oneof with pubkey codec). We don't move forward with creating protobuf pubkeys.. We'll have to add a workaround step / amino compatibility layer. - Marie: I've already started to work on it. - Cory: Is it ok that sahith's PR got merged? - Aaron: That should be fine. We shouldj ust tag the issue & ADR as 0.41. - Marko: Minor clarification - in the tm pubkey reference PR, should i be removing keys, or just leaving it as is right now? - If i were to remove something right now, it should be ed25519 and sr key. - Discuss level of support with amino compatibility? - Robert: At this point is it ok to just scrap amino compatibility? - Aaron: as a starting point, we can't drop it in this release. The question is more abt whether or not we keep it in future releases. - Aaron: There are 2 kinds of level of support: - we could allow folks to run transactions & api calls using amino - we could allow for folks to use amino for state encoding onchain - Aaron: This is a directional conversation for the community. - Jack: It's been my understanding that in 0.41 we rip out support for amino entirely. - gRPC swagger files - Bez approved hte PR - We will work with a nodejs script in the meantime, and move towards a go script in a follow up PR later - Anil: What do we do about gRPC gatway use base64 for encoding instead of bech32? - Aaron: hmm.. that could be an issue. - Zaki: We are trying to nudge the ecosystem towards bech32 encoding. Ethereum hit this problem by using raw hashes in addresses, assuming ecosystem around UX would figure it all out. We're trying to avoid recreating that mistake. - Aaron: then the easiest way to handle this is to encode all protobuf messages as strings instead of bytes. Anil- is there a way on the gPRC gateway level to chang things to bech32? - Anil: Yes, we can write a small function / fork grpc gateway, mark all types that hsould be bech32 addresses as such. - Aaron: Another option would be to switch all addresses in proto type to strings instead of bytes - Anil: My suggestion would be to fork gRPC gateway. - Cory: And how does it get handled on the CLI? - Aaron: Actually this is an issue with jsonpb - Aaron: Long term we could have our own custom JSON encoding ontop of protobuf - Marko: I do believe Libra was using protobuf, with their own canonical encoding implementation, but now they're actually migrating away from gRPC to JSON RPC. ## Follow-ups - Next direction on pubkey stuff: - Base account will continue with current pubkey `any` - Two types, with an equals method - necesssary for antehandlers which compare amino tx type with proto based state type - converstion of legacy rest endpoints (encode, decode, broadcast) to swap between amino and proto - Update to ADR028 (Cosmos native pubkeys, that don't define their own address method) - Cory to write up issue

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully