Skip to content

Releases: poetapp/poet-js

v5.0.3

10 Oct 17:18
Compare
Choose a tag to compare

5.0.3 (2018-10-10)

Bug Fixes

  • deps: update dependency jsonld-signatures to v2.3.1 (#176) (513b64c)

v5.0.2

10 Oct 16:45
Compare
Choose a tag to compare

5.0.2 (2018-10-10)

Bug Fixes

v5.0.1

10 Oct 16:36
Compare
Choose a tag to compare

5.0.1 (2018-10-10)

Bug Fixes

v5.0.0

10 Oct 00:58
9fe5933
Compare
Choose a tag to compare

5.0.0 (2018-10-10)

Features

  • sign verifiable claims with jsonld-signatures (9fe5933)

BREAKING CHANGES

  • the mechanism to create a verifiable claim and sign it has changed dramatically.

Refer to the README for details. Use the method below to create a claim.

import { configureCreateVerifiableClaim, createIssuerFromPrivateKey, getVerifiableClaimSigner } from '@po.et/poet-js'

const { configureSignVerifiableClaim } = getVerifiableClaimSigner()

const issuerPrivateKey = '<Ed25519Base58PrivateKey>' 
const issuer = createIssuerFromPrivateKey(issuerPrivateKey)

const createVerifiableWorkClaim = configureCreateVerifiableClaim({ issuer })
const signVerifiableClaim = configureSignVerifiableClaim({ privateKey: issuerPrivateKey })

const workClaim = {
  name: 'The Raven',
  author: 'Edgar Allan Poe',
  tags: 'poem',
  dateCreated: '',
  datePublished: '1845-01-29T03:00:00.000Z',
  archiveUrl: 'https://example.com/raven',
  hash: '<hash of content>',
}

const unsignedVerifiableClaim = await createVerifiableWorkClaim(workClaim)
const signedWorkClaim = await signVerifiableClaim(unsignedVerifiableClaim)

v4.0.0

21 Sep 16:41
7a60e53
Compare
Choose a tag to compare

4.0.0 (2018-09-21)

Bug Fixes

Features

BREAKING CHANGES

  • the PoetTimestamp and TransactionPoetTimestam interfaces were modified in a backwards-incompatible way.

Adapting to Poet*Anchor should require almost no work.

v3.1.0

13 Sep 15:14
eae3cb3
Compare
Choose a tag to compare

3.1.0 (2018-09-13)

Features

v3.0.5

05 Sep 19:43
Compare
Choose a tag to compare

3.0.5 (2018-09-05)

Bug Fixes

  • deps: update dependency jsonld to v1.1.0 (#129) (84c51cc)

v3.0.4

31 Aug 14:38
Compare
Choose a tag to compare

3.0.4 (2018-08-31)

Bug Fixes

  • deps: update dependency protobufjs to v6.8.8 (#124) (7cfcfcd)

v3.0.3

31 Aug 14:26
Compare
Choose a tag to compare

3.0.3 (2018-08-31)

Bug Fixes

  • deps: update dependency jsonld to v1.0.4 (#123) (23c12ae)

v3.0.2

31 Aug 14:13
Compare
Choose a tag to compare

3.0.2 (2018-08-31)

Bug Fixes

  • deps: update dependency babel-plugin-module-resolver to v3.1.1 (#122) (0840c5f)