Giter VIP home page Giter VIP logo

Comments (2)

NegativeMjark avatar NegativeMjark commented on August 15, 2024

Hi @madguy02.

The behaviour of SignJSON is part of the matrix specification and is documented at https://matrix.org/docs/spec/server_server/unstable.html#signing-json

json.RawMessage is part of the go standard library and is documented at https://golang.org/pkg/encoding/json/#RawMessage

The matrix-js-sdk already has a partial implementation of JSON signing https://github.com/matrix-org/matrix-js-sdk/blob/0f30d21fa270f582d0023214ccca8259d2c6e733/src/crypto/index.js#L1115-L1126

I've added a few comments to the go version to help explain it in #48.

If it helps there is a python implementation at https://github.com/matrix-org/python-signedjson/blob/master/signedjson/sign.py#L26-L53

from gomatrixserverlib.

madguy02 avatar madguy02 commented on August 15, 2024

hii @NegativeMjark thanks for your response

from gomatrixserverlib.

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.