See db.Database.

def WriteSignedBinaryReferences(self, binary_id,
                                  references):
    """See db.Database."""
    self.signed_binary_references[_SignedBinaryKeyFromID(binary_id)] = (
        references.Copy(), rdfvalue.RDFDatetime.Now())