read-write-web / banana-wiki

wiki for banana-rdf
3 stars 4 forks source link

change doc to take account of cert binder improvement #6

Open bblfish opened 7 years ago

bblfish commented 7 years ago

As shown in httpMethods.sc we can transform a public key in one step into a pointed graph:

def pubKeyPG = {
    import ops._
    implicit val bind = run.cosy.crypto.Cert.binderWithName[Rdf](Uri("#key"))
    pubKey.map(_.toPG)
   }

The name can be specified immediately and so no need to change the name of the pointer.