Nothing Special   »   [go: up one dir, main page]

0.8.27-patch.20 • Published 10 months ago

@canvas-js/chain-atp v0.8.27-patch.20

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

@canvas-js/chain-atp

The Bluesky/AT Protocol session signer prompts the user for an app password, and uses it to generate a new signed post on Bluesky, authenticating a new session. The posted authentication message is then immediately deleted.

It also handles verification of messages matching this authentication method.

Table of Contents

Installation

npm i @canvas-js/chain-atp

API

import type { Action, Message, Session, SessionSigner, Signature } from "@canvas-js/interfaces"
import { Operation } from "./operation.js"

export type ATPSessionData = {
  verificationMethod: string
  plcOperationLog: Operation[]
  recordArchive: Uint8Array
  recordURI: string
}

export interface ATPSignerOptions {
  login?: () => Promise<{
    identifier: string
    password: string
  }>
}

export declare class ATPSigner implements SessionSigner<ATPSessionData> {
  constructor(options?: ATPSignerOptions)

  static createAuthenticationMessage(topic: string, publicKey: string, address: string): string

  match: (address: string) => boolean
  verifySession(topic: string, session: Session<ATPSessionData>): Promise<void>
  getSession(
    topic: string,
    options?: {
      chain?: string
      timestamp?: number
      fromCache?: boolean
    },
  ): Promise<Session<ATPSessionData>>
  sign(message: Message<Action | Session>): Signature
  clear(topic: string): void
}
0.13.0-next.16

4 months ago

0.13.0-next.15

4 months ago

0.13.0-next.14

4 months ago

0.13.0-next.13

4 months ago

0.12.1

4 months ago

0.13.0-next.12

4 months ago

0.13.0-next.11

4 months ago

0.13.0-next.10

4 months ago

0.13.0-next.9

4 months ago

0.13.0-next.8

4 months ago

0.13.0-next.1

5 months ago

0.13.0-next.3

4 months ago

0.13.0-next.2

4 months ago

0.13.0-next.5

4 months ago

0.13.0-next.4

4 months ago

0.13.0-next.7

4 months ago

0.13.0-next.6

4 months ago

0.11.0

5 months ago

0.12.0

4 months ago

0.10.10

6 months ago

0.10.0-alpha.1

9 months ago

0.8.29

9 months ago

0.10.9

6 months ago

0.10.1

7 months ago

0.10.0-beta.2

9 months ago

0.10.2

7 months ago

0.10.0-beta.3

8 months ago

0.10.3

7 months ago

0.10.4

7 months ago

0.10.0-beta.1

9 months ago

0.10.5

7 months ago

0.10.6

6 months ago

0.10.7

6 months ago

0.10.0-beta.4

8 months ago

0.10.8

6 months ago

0.10.0

8 months ago

0.8.28

9 months ago

0.8.27-patch.21

9 months ago

0.8.27-patch.14

10 months ago

0.8.27-patch.13

10 months ago

0.8.27-patch.16

10 months ago

0.8.27-patch.15

10 months ago

0.8.27-patch.10

10 months ago

0.8.27-patch.6

10 months ago

0.8.27-patch.7

10 months ago

0.8.27-patch.12

10 months ago

0.8.27-patch.8

10 months ago

0.8.27-patch.11

10 months ago

0.8.27-patch.9

10 months ago

0.8.27-patch.20

10 months ago

0.9.1

10 months ago

0.8.27-patch.18

10 months ago

0.8.27-patch.17

10 months ago

0.8.27-patch.19

10 months ago

0.8.27-patch.2

10 months ago

0.8.27-patch.3

10 months ago

0.8.27-patch.4

10 months ago

0.8.27-patch.5

10 months ago

0.8.27-patch.1

10 months ago

0.9.0

10 months ago

0.9.0-next.1

11 months ago

0.8.26-alpha.4

1 year ago

0.8.26-alpha.3

1 year ago

0.8.26-alpha.2

1 year ago

0.8.26

1 year ago

0.8.26-alpha.1

1 year ago

0.8.25

1 year ago

0.8.24

1 year ago

0.8.23

1 year ago

0.8.22

1 year ago

0.8.21

1 year ago

0.8.20

1 year ago

0.8.19

1 year ago

0.8.18

1 year ago

0.8.17

1 year ago

0.8.16

1 year ago

0.8.15

1 year ago

0.8.14-alpha.1

1 year ago

0.8.14

1 year ago

0.8.13

1 year ago

0.8.12

1 year ago

0.8.11

1 year ago

0.8.10

1 year ago

0.8.9

1 year ago

0.8.8

1 year ago

0.8.5

1 year ago

0.8.4

1 year ago

0.8.7

1 year ago

0.8.6

1 year ago

0.8.2-alpha.1

1 year ago

0.8.2-patch.1

1 year ago

0.8.3

1 year ago

0.8.2

1 year ago

0.7.2-alpha.1

1 year ago

0.7.2-alpha.2

1 year ago

0.7.2-alpha.3

1 year ago

0.7.2-alpha.4

1 year ago

0.7.2-alpha.5

1 year ago

0.7.2-alpha.6

1 year ago

0.7.2-alpha.7

1 year ago

0.8.1

1 year ago

0.7.2

1 year ago

0.8.0

1 year ago

0.7.1

1 year ago

0.7.3

1 year ago

0.7.0

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago