Skip to content

Commit

Permalink
docs: Upgrade Helia.
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenyoung committed Jan 30, 2024
1 parent 61e3a28 commit 4fb925b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ await createOrbitDB({ ipfs, identity: { provider } })
If you require a more custom approach to managing identities, you can create an identity by passing the identity provider to [createIdentity](https://api.orbitdb.org/module-Identities-Identities.html#createIdentity) then use the resulting identity with OrbitDB:

```js
import { createHelia, libp2pDefaults } from 'helia'
import { createOrbitDB, Identities, useIdentityProvider } from '@orbitdb/core'
import * as OrbitDBIdentityProviderEthereum from '@orbitdb/identity-provider-ethereum'
import { create } from 'ipfs-core'

const ipfs = await create()
const libp2pOptions = libp2pDefaults()
const ipfs = await createHelia({ libp2p: libp2pOptions })

useIdentityProvider(OrbitDBIdentityProviderEthereum)
const provider = OrbitDBIdentityProviderEthereum({ wallet })
Expand Down

0 comments on commit 4fb925b

Please sign in to comment.