Monorepo for Tangled tangled.org

knotserver: add repodid package, db migrations, and go-didplc dep #1135

open opened by oyster.cafe targeting master from oyster.cafe/tangled-core: master
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:3fwecdnvtcscjnrx2p4n7alz/sh.tangled.repo.pull/3mgprvt2ech22
-15
Interdiff #3 #4
go.mod

This file has not been changed.

go.sum

This file has not been changed.

-15
knotserver/db/db.go
··· 198 198 return repoDid, err 199 199 } 200 200 201 - func (d *DB) GetRepoSigningKey(repoDid string) ([]byte, error) { 202 - var signingKey []byte 203 - err := d.db.QueryRow( 204 - `SELECT signing_key FROM repo_keys WHERE repo_did = ? AND key_type = 'k256'`, 205 - repoDid, 206 - ).Scan(&signingKey) 207 - if err != nil { 208 - return nil, fmt.Errorf("retrieving signing key for %s: %w", repoDid, err) 209 - } 210 - if signingKey == nil { 211 - return nil, fmt.Errorf("signing key for %s is null (did:web repo?)", repoDid) 212 - } 213 - return signingKey, nil 214 - } 215 - 216 201 func (d *DB) GetRepoKeyOwner(repoDid string) (ownerDid string, repoName string, err error) { 217 202 var nullOwner, nullName sql.NullString 218 203 err = d.db.QueryRow(
knotserver/repodid/repodid.go

This file has not been changed.

nix/gomod2nix.toml

This file has not been changed.

History

14 rounds 1 comment
sign up or login to add to the discussion
1 commit
expand
knotserver: add repodid package, db migrations, and go-didplc dep
no conflicts, ready to merge
expand 0 comments
1 commit
expand
knotserver: add repodid package, db migrations, and go-didplc dep
expand 0 comments
1 commit
expand
knotserver: add repodid package, db migrations, and go-didplc dep
expand 0 comments
1 commit
expand
knotserver: add repodid package, db migrations, and go-didplc dep
expand 0 comments
1 commit
expand
knotserver: add repodid package, db migrations, and go-didplc dep
expand 1 comment
1 commit
expand
knotserver: add repodid package, db migrations, and go-didplc dep
expand 0 comments
1 commit
expand
knotserver: add repodid package, db migrations, and go-didplc dep
expand 0 comments
1 commit
expand
knotserver: add repodid package, db migrations, and go-didplc dep
expand 0 comments
1 commit
expand
knotserver: add repodid package, db migrations, and go-didplc dep
expand 0 comments
1 commit
expand
knotserver: add repodid package, db migrations, and go-didplc dep
expand 0 comments
1 commit
expand
knotserver: add repodid package, db migrations, and go-didplc dep
expand 0 comments
1 commit
expand
knotserver: add repodid package, db migrations, and go-didplc dep
expand 0 comments
1 commit
expand
knotserver: add repodid package, db migrations, and go-didplc dep
expand 0 comments
1 commit
expand
knotserver: add repodid package, db migrations, and go-didplc dep
expand 0 comments