An open API service indexing awesome lists of open source software.

https://github.com/leask/mvm-memo

Use to `Encode` and `Decode` memoes in mvm invoking.
https://github.com/leask/mvm-memo

Last synced: 9 months ago
JSON representation

Use to `Encode` and `Decode` memoes in mvm invoking.

Awesome Lists containing this project

README

          

# MVM-MEMO

Use to `Encode` and `Decode` memoes in mvm invoking.

The goal is to be compatible with the [mvm go version](https://github.com/MixinNetwork/trusted-group/tree/master/mvm/encoding).

## How to use

### Install

```bash
npm install mvm-memo
```

### Use as a ES6 module

```javascript
import { operation } from 'mvm-memo';

const memo = operation.encode({
purpose: 'OPERATION_PURPOSE_GROUP_EVENT',
process: '9a34bd64-afcb-11ec-b909-0242ac120002',
extra: '01ed9b9ba580000000000000000000000000000000000000000e35fd4acef14e2b00b9d0cd000000000000000000000000',
});
```

## TODO

- [ ] Adding decoder for operation-coder
- [ ] Support event-coder