# @daosign/core

> DAOsign Opensource JS library

Latest version **0.1.8** (published 2024-05-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install @daosign/core
pnpm add @daosign/core
yarn add @daosign/core
bun add @daosign/core
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2024-05-13 |
| First published | 2024-03-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 58 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | DAOsign |
| Maintainers | daosign |

## Links

- npm: https://www.npmjs.com/package/@daosign/core
- Repository: https://github.com/DAOsign
- npm.io page: https://npm.io/package/@daosign/core

## Dependencies (2)

- [jest](https://npm.io/package/jest.md) ^29.7.0
- [ipfs-only-hash](https://npm.io/package/ipfs-only-hash.md) ^4.0.0

## Recent versions

- 0.1.8 (latest) — 2024-05-13
- 0.1.7 — 2024-05-13
- 0.1.6 — 2024-04-05
- 0.1.5 — 2024-03-20
- 0.1.4 — 2024-03-18
- 0.1.3 — 2024-03-18
- 0.1.2 — 2024-03-18
- 0.1.1 — 2024-03-11
- 0.1.0 — 2024-03-07

## README

### Daosign Core

# DAOsign Core

This core package includes basic functional to create, validate both signing proof payload and proof itself.

## Usage

To use, follow these steps:

1. Install core package:
   ```
   npm install @daosign/cre
   ```

2. Import create payload function:
   ```
   import { createProofOfAuthorityPayload } from "@daosign/core"
   ```

## Example

Example usage:

```
import { createProofOfAuthorityPayload, createSignedProof } from "@daosign/core"

//create payload
function createPayload(signer ,agreementCID, agreementSigners) {
    const payload = createProofOfAuthorityPayload({from: signer, agreementCID: agreementCID, signers: agreementSigners});
    return payload;
}

function createSignedProof(signer, signingPayload, signature){
  const signedPayload = { address:signer, data: signingPayload, sig: signature};
  const proofPayload = createSignedProofPayload(signedPayload);
  return proofPayload;
}

```

---
_Source: https://npm.io/package/@daosign/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
